X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/8a92a2c03c1ea03829e44bf80771a08153261e2a..4851c2318e2d5ae7274589bac10162214cb11c2a:/etc/zsh/.zshrc?ds=sidebyside diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 2d3a672..64c7c5e 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -219,11 +219,13 @@ alias pa=$ps alias spa="sudo $ps" unset ps ## git +alias gd='git diff' alias gdh='git diff HEAD' alias ga='git add' alias gc='git commit' alias gca='git commit --amend' alias gp='git push' +alias gu='git pull' ## cd/zoxide function up { \cd $(printf '../%.0s' {1..${1:-1}}) @@ -234,6 +236,8 @@ if [[ -v commands[zoxide] ]] { eval "${$(zoxide init zsh):s#_files -/#_cd#}" alias cd=z } +## dotfiles +alias dfu='d=${$(echo ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d git pull' ### hooks autoload -Uz add-zsh-hook