Lazy load of kubectl.

This commit is contained in:
David Tomaschik
2019-12-07 22:46:31 -08:00
parent 24c1c8edfb
commit 048d7fb1ba

View File

@@ -13,5 +13,11 @@ export PATH="${PATH}:${GCL}/bin"
source ${GCL}/completion.zsh.inc source ${GCL}/completion.zsh.inc
which kubectl 2>/dev/null >&2 && \ which kubectl 2>/dev/null >&2 && \
source <(kubectl completion zsh) || \ function kubectl() {
if ! type __start_kubectl >/dev/null 2>&1; then
source <(command kubectl completion zsh)
fi
command kubectl "$@"
} || \
true true