mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Lazy load of kubectl.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user