[zsh] Optionally load kubectl completion
This commit is contained in:
parent
91f922370d
commit
87a517b471
|
@ -74,6 +74,11 @@ function fzf-ssh () {
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Only load kubectl completion when needed. I's bog-slow
|
||||||
|
if [ -f $KUBECONFIG ]; then
|
||||||
|
source <(kubectl completion zsh);
|
||||||
|
fi;
|
||||||
|
|
||||||
zle -N fzf-ssh
|
zle -N fzf-ssh
|
||||||
bindkey '\es' fzf-ssh
|
bindkey '\es' fzf-ssh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue