git: Move git-bug completion sourcing to correct shell

This commit is contained in:
Marty Oehme 2025-02-24 12:11:52 +01:00
parent 8b4e9f31ba
commit 295a598f50
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 7 additions and 4 deletions
vcs/git/config

View file

@ -4,10 +4,6 @@ if ! exist git-bug; then
return 1
fi
# 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'
gb() {
if [ "$#" -eq 1 ] && git-bug bug status "$1" >/dev/null 2>/dev/null; then

View file

@ -0,0 +1,7 @@
#!/usr/bin/env zsh
if ! exist git-bug; then
return 1
fi
source <(git-bug completion zsh)