Check for glab/gh in zshrc before sourcing
This commit is contained in:
parent
49ecb67edc
commit
ebe0569a87
4
.zshrc
4
.zshrc
|
@ -57,5 +57,5 @@ command -v direnv > /dev/null 2>&1 && eval "$(direnv hook zsh)"
|
||||||
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
||||||
|
|
||||||
autoload -U compinit; compinit
|
autoload -U compinit; compinit
|
||||||
source <(glab completion -s zsh); compdef _glab glab
|
command -v glab > /dev/null && source <(glab completion -s zsh); compdef _glab glab
|
||||||
source <(gh completion -s zsh); compdef _gh gh
|
command -v gh > /dev/null && source <(gh completion -s zsh); compdef _gh gh
|
||||||
|
|
Loading…
Reference in a new issue