Add bash / zsh specific kubectl initialization commands to profile

This commit is contained in:
2020-06-25 23:33:53 +08:00
parent ace850f2e5
commit a6348ad118
2 changed files with 10 additions and 0 deletions

View File

@@ -1,2 +1,7 @@
source /etc/profile
source $HOME/.profile
# source kubernetes shell completion
if [ "$PROFILE_ENABLE_KUBECTL" ]; then
source <(kubectl completion zsh)
fi