diff --git a/home/.zshrc b/home/.zshrc index ef9fee8..470b905 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -74,6 +74,11 @@ function fzf-ssh () { 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 bindkey '\es' fzf-ssh