From ebe0569a87034eb2e7754c25192dec48a7d542af Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 18 Mar 2023 09:17:07 +0000 Subject: [PATCH] Check for glab/gh in zshrc before sourcing --- .zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 9a2db755..99b5e98d 100644 --- a/.zshrc +++ b/.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)" 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