diff --git a/.zshrc b/.zshrc index f0323e4..403e0da 100644 --- a/.zshrc +++ b/.zshrc @@ -23,7 +23,10 @@ plugins=(git) source $ZSH/oh-my-zsh.sh -source <(kubectl completion zsh) +if [[ $(command -v kubectl) ]]; +then + source <(kubectl completion zsh) +fi # User configuration