Add kubectl completions

This commit is contained in:
Micke Nordin 2024-01-12 09:54:19 +01:00
parent b66d18edba
commit c9aef4f2a6
Signed by untrusted user who does not match committer: micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -117,6 +117,8 @@ unset SSH_AGENT_PID
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