Fix sourcing kubectl completion

main
Buddy Sandidge 4 years ago
parent 3d976d8e84
commit f2593ed829

@ -1,10 +1,10 @@
#ft=sh #shellcheck disable=1090,2039,SC2148
#shellcheck disable=1090,2039
if [ "${BASH_VERSION}" != "" ] && [ "$(ps -p $$ -ocomm=)" != sh ]; then if [ "${BASH_VERSION}" != "" ] && [ "$(ps -p $$ -ocomm=)" != sh ]; then
source <(kubectl completion bash) source <(kubectl completion bash)
fi fi
if [ "${ZSH_VERSION}" != "" ]; then if [ "${ZSH_VERSION}" != "" ]; then
autoload -U +X compinit && compinit
source <(kubectl completion zsh) source <(kubectl completion zsh)
fi fi

Loading…
Cancel
Save