Add kubectl completions

main
Micke Nordin 11 months ago
parent b66d18edba
commit c9aef4f2a6
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -117,6 +117,8 @@ unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
# Completions
source <(kubectl completion zsh)
h=( $(get_drive_servers) ) 2>/dev/null h=( $(get_drive_servers) ) 2>/dev/null
if [[ $#h -gt 0 ]]; then if [[ $#h -gt 0 ]]; then
zstyle ':completion:*:ssh:*' hosts $h zstyle ':completion:*:ssh:*' hosts $h

Loading…
Cancel
Save