vcs/git: improve g and gs aliases

This commit is contained in:
Henrik Lissner 2016-12-15 21:22:59 -05:00
parent 60197ed27d
commit 9f2a14192e

View file

@ -1,9 +1,10 @@
is-callable 'hub' && alias git='hub'
g() { [ $# -eq 0 ] && git status --short || git $*; }
is-callable hub && alias git='hub'
g() { [[ $# = 0 ]] && git status --short . || git $*; }
compdef g=hub
alias gbr='git browse'
alias gi='git init'
alias gs='git status'
alias gs='git status --short'
alias gsu='git submodule'
alias gsq='git rebase -i origin/master'
alias gco='git checkout'
@ -28,5 +29,4 @@ alias gt='git tag'
alias gtd='git tag -d'
alias gta='git tag -a'
alias gl='git log --oneline --decorate'
alias gls='git ls-files'