diff --git a/skel/.bash_profile b/skel/.bash_profile index b8e6424..deca165 100644 --- a/skel/.bash_profile +++ b/skel/.bash_profile @@ -7,3 +7,8 @@ if [ -n "$BASH_VERSION" ]; then fi source "$HOME/.profile" + +# source kubernetes shell completion +if [ "$PROFILE_ENABLE_KUBECTL" ]; then + source <(kubectl completion bash) +fi diff --git a/skel/.zprofile b/skel/.zprofile index d04b7d3..cee8ebf 100644 --- a/skel/.zprofile +++ b/skel/.zprofile @@ -1,2 +1,7 @@ source /etc/profile source $HOME/.profile + +# source kubernetes shell completion +if [ "$PROFILE_ENABLE_KUBECTL" ]; then + source <(kubectl completion zsh) +fi