Check for glab/gh before sourcing completions

This commit is contained in:
Evie Litherland-Smith 2023-03-14 10:37:56 +00:00
parent 5d0940d0c2
commit add9bdc2d1

View file

@ -53,5 +53,5 @@ command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)"
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
source <(glab completion -s bash)
source <(gh completion -s bash)
command -v glab > /dev/null && source <(glab completion -s bash)
command -v gh > /dev/null && source <(gh completion -s bash)