Fix sourcing kubectl completion
parent
3d976d8e84
commit
f2593ed829
@ -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
|
||||
|
Loading…
Reference in New Issue