Move kubectl init

main
Buddy Sandidge 4 years ago
parent b6271e122e
commit c19e79600a

@ -4,5 +4,3 @@
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
. "$(brew --prefix)/share/bash-completion/bash_completion" . "$(brew --prefix)/share/bash-completion/bash_completion"
fi fi
source <(kubectl completion bash)

@ -0,0 +1,10 @@
#ft=sh
#shellcheck disable=1090,2039
if [ "${BASH_VERSION}" != "" ] && [ "$(ps -p $$ -ocomm=)" != sh ]; then
source <(kubectl completion bash)
fi
if [ "${ZSH_VERSION}" != "" ]; then
source <(kubectl completion zsh)
fi
Loading…
Cancel
Save