Only source kubectl if it exists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user