Add bash / zsh specific kubectl initialization commands to profile
This commit is contained in:
@@ -7,3 +7,8 @@ if [ -n "$BASH_VERSION" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
source "$HOME/.profile"
|
source "$HOME/.profile"
|
||||||
|
|
||||||
|
# source kubernetes shell completion
|
||||||
|
if [ "$PROFILE_ENABLE_KUBECTL" ]; then
|
||||||
|
source <(kubectl completion bash)
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,2 +1,7 @@
|
|||||||
source /etc/profile
|
source /etc/profile
|
||||||
source $HOME/.profile
|
source $HOME/.profile
|
||||||
|
|
||||||
|
# source kubernetes shell completion
|
||||||
|
if [ "$PROFILE_ENABLE_KUBECTL" ]; then
|
||||||
|
source <(kubectl completion zsh)
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user