git: Add git-bug quick access aliases
This commit is contained in:
parent
2fa52d6b90
commit
b0c5176f1e
1 changed files with 18 additions and 2 deletions
|
@ -13,8 +13,6 @@ alias g='git'
|
|||
alias ga='git add'
|
||||
alias gaa='git add --all'
|
||||
alias gai='git add -i'
|
||||
alias gb='git branch'
|
||||
alias gbd='git branch -d'
|
||||
|
||||
alias gc='git commit -v'
|
||||
alias gc!='git commit -v --amend'
|
||||
|
@ -96,4 +94,22 @@ else
|
|||
alias gsta='git stash save'
|
||||
fi
|
||||
|
||||
if exist git-bug; then
|
||||
gb() {
|
||||
if [ "$#" -eq 1 ]; then
|
||||
git bug show "$1"
|
||||
else
|
||||
git bug ls "$@"
|
||||
fi
|
||||
}
|
||||
alias gbt='git bug termui'
|
||||
|
||||
alias gba='git bug add'
|
||||
alias gbm='git bug comment add'
|
||||
alias gbc='git bug status close'
|
||||
|
||||
alias gbp='git bug push'
|
||||
alias gbl='git bug pull'
|
||||
fi
|
||||
|
||||
unset -v git_version
|
||||
|
|
Loading…
Reference in a new issue