Add bash / zsh specific kubectl initialization commands to profile
This commit is contained in:
1 parent
ace850f2e5
commit
a6348ad118
2 files changed
+10
No files matched your search
@@ -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