(zshrc) Fix kubectl autocompletion sourcing

This commit is contained in:
Tanguy Herbron 2023-01-05 22:11:41 +01:00
parent c596c7bfb5
commit 2465365f17

5
.zshrc
View File

@ -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