git: Move git-bug completion sourcing to correct shell
This commit is contained in:
parent
8b4e9f31ba
commit
295a598f50
2 changed files with 7 additions and 4 deletions
|
|
@ -4,10 +4,6 @@ if ! exist git-bug; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
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'
|
alias gbt='git-bug termui'
|
||||||
gb() {
|
gb() {
|
||||||
if [ "$#" -eq 1 ] && git-bug bug status "$1" >/dev/null 2>/dev/null; then
|
if [ "$#" -eq 1 ] && git-bug bug status "$1" >/dev/null 2>/dev/null; then
|
||||||
|
|
|
||||||
7
vcs/git/config/zsh/alias.d/git-bug-completions.zsh
Normal file
7
vcs/git/config/zsh/alias.d/git-bug-completions.zsh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
if ! exist git-bug; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
source <(git-bug completion zsh)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue