zshrc: add dotfiles update function

This commit is contained in:
2023-07-04 14:00:18 -04:00
parent 10eaeaf1de
commit 6d29f60a16

View File

@@ -79,5 +79,11 @@ export EDITOR="vim"
alias svim="sudoedit"
alias unlock="gpg -o /dev/null -s /dev/null"
function dotfiles-update() {
pushd "$(dirname "$(dirname "$(readlink -f "$HOME/.zshrc")")")" >> /dev/null
git pull
popd >> /dev/null
}
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh