mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
zshrc: add dotfiles update function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user