diff --git a/skel/.bash_profile b/skel/.bash_profile index deca165..b5883b1 100644 --- a/skel/.bash_profile +++ b/skel/.bash_profile @@ -9,6 +9,6 @@ fi source "$HOME/.profile" # source kubernetes shell completion -if [ "$PROFILE_ENABLE_KUBECTL" ]; then +if type kubectl 2> /dev/null && [ "$PROFILE_ENABLE_KUBECTL" ]; then source <(kubectl completion bash) fi