Check for glab/gh in zshrc before sourcing

This commit is contained in:
Evie Litherland-Smith 2023-03-18 09:17:07 +00:00
parent 49ecb67edc
commit ebe0569a87

4
.zshrc
View file

@ -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)"
autoload -U compinit; compinit
source <(glab completion -s zsh); compdef _glab glab
source <(gh completion -s zsh); compdef _gh gh
command -v glab > /dev/null && source <(glab completion -s zsh); compdef _glab glab
command -v gh > /dev/null && source <(gh completion -s zsh); compdef _gh gh