git: Add git-bug quick access aliases

This commit is contained in:
Marty Oehme 2024-02-04 21:25:21 +01:00
parent 2fa52d6b90
commit b0c5176f1e
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -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