From: sev Date: Fri, 20 Oct 2023 19:49:13 +0000 (-0500) Subject: zshrc: add more git aliases, dotfiles update alias X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/4851c2318e2d5ae7274589bac10162214cb11c2a?ds=inline zshrc: add more git aliases, dotfiles update alias --- 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