git: Add git-bug edit function gbe

Can edit either the description of a bug (`gbe <bug-id>`) or a specific
comment (`gbe <comment-id>`).
This commit is contained in:
Marty Oehme 2025-02-24 11:19:14 +01:00
parent 1d2dbc0df2
commit 53a1c049e0
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 66 additions and 25 deletions

View file

@ -97,29 +97,4 @@ else
alias gsta='git stash save'
fi
if exist git-bug; then
# POSIX-compliant version of . <(cmd) substitution
# shellcheck source=/dev/null # but shellcheck can't access
git-bug completion zsh | . /dev/fd/0
alias gbt='git-bug termui'
alias gb="git-bug bug"
alias gbw="git-bug bug show"
alias gbn='git-bug bug new'
alias gbm='git-bug bug comment new'
alias gbte='git-bug bug title edit'
# TODO: Implement toggle function
# grab current status and then open or close accordingly
alias gbo='git-bug bug status close'
alias gbp='git-bug push'
alias gbl='git-bug pull'
alias gbu='git-bug user' # list users
# show primary user info
alias gbU='git-bug user user "$(git-bug user | cut -d" " -f1 | head -n1)"'
fi
unset -v git_version