diff --git a/skel/.zprofile b/skel/.zprofile index cee8ebf..953144e 100644 --- a/skel/.zprofile +++ b/skel/.zprofile @@ -2,6 +2,6 @@ source /etc/profile source $HOME/.profile # source kubernetes shell completion -if [ "$PROFILE_ENABLE_KUBECTL" ]; then +if whence kubectl > /dev/null && [ "$PROFILE_ENABLE_KUBECTL" ]; then source <(kubectl completion zsh) fi