From: Samir Benmendil Date: Fri, 20 Nov 2015 10:28:25 +0000 (+0000) Subject: zsh: add `git stash` aliases X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/4f4ac88afff1c5a331c5f50b2b9e1af005c0ae93 zsh: add `git stash` aliases --- diff --git a/zsh/aliases/git.zsh b/zsh/aliases/git.zsh index 2253a72..d487d61 100644 --- a/zsh/aliases/git.zsh +++ b/zsh/aliases/git.zsh @@ -3,6 +3,8 @@ alias g='git' compdef g=git alias gst='git status' compdef _git gst=git-status +alias gsts='git status -s' +compdef _git gsts=git-status alias gl='git pull' compdef _git gl=git-pull alias gup='git pull --rebase' @@ -22,6 +24,18 @@ compdef _git gca=git-commit alias gco='git checkout' compdef _git gco=git-checkout alias gcm='git checkout master' +alias gs='git stash save' +compdef _git gs=git-stash +alias gsa='git stash apply' +compdef _git gsa=git-stash +alias gsp='git stash pop' +compdef _git gsp=git-stash +alias gsd='git stash drop' +compdef _git gsd=git-stash +alias gsl='git --no-pager stash list' +compdef _git gsl=git-stash +alias gss='git stash show --patch' +compdef _git gss=git-stash alias gr='git remote' compdef _git gr=git-remote alias grv='git remote -v' @@ -54,8 +68,6 @@ alias glgg='git log --stat --graph --max-count=20 --decorate' compdef _git glgg=git-log alias glgga='git log --stat --graph --decorate --all' compdef _git glgga=git-log -alias gss='git status -s' -compdef _git gss=git-status alias ga='git add' compdef _git ga=git-add alias gm='git merge'