Move kubectl completion

This commit is contained in:
Micke Nordin 2024-01-15 09:51:13 +01:00
parent 4a32106ab5
commit 2760b6758f
No known key found for this signature in database
GPG key ID: F53C4CC83EDAB3BE

View file

@ -118,7 +118,6 @@ if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Completions
source <(kubectl completion zsh)
h=( $(get_drive_servers) ) 2>/dev/null
if [[ $#h -gt 0 ]]; then
zstyle ':completion:*:ssh:*' hosts $h
@ -130,3 +129,4 @@ fi
# Initialize the autocompletion
autoload -Uz compinit && compinit -i
source <(kubectl completion zsh)