Fix sourcing kubectl completion

This commit is contained in:
Buddy Sandidge 2020-12-23 12:08:44 -08:00
parent 3d976d8e84
commit f2593ed829

View File

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