From: sev Date: Mon, 16 Sep 2024 13:49:28 +0000 (-0500) Subject: zshrc: update git aliases X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/57f9ed7a8fc80250bae6c6d0b48d68b64a677563 zshrc: update git aliases --- diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index ab3d7ef..46c1992 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -276,14 +276,20 @@ alias svu="sudo python3 -mvenv --upgrade" alias g=git alias gd='git diff' alias gdh='git diff HEAD' +alias gds='git diff --staged' alias ga='git add' alias ga.='git add .' +alias gai='git add -i' +alias gap='git add -p' alias gc='git commit' alias gca='git commit --amend' alias gp='git push' alias gu='git pull' alias gl='git log' alias gt='git tree' # from gitconfig +alias gs='git show' +alias gst='git stash' +alias gsp='git stash pop' ## cd/zoxide function up { \cd $(printf '../%.0s' {1..${1:-1}})