Add kubectl completions
This commit is contained in:
parent
b66d18edba
commit
c9aef4f2a6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue