From c9aef4f2a63f07ef6cb909e0c11a975a143c85de Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 12 Jan 2024 09:54:19 +0100 Subject: [PATCH] Add kubectl completions --- templates/zshrc.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/zshrc.j2 b/templates/zshrc.j2 index 4c2599f..54227b8 100644 --- a/templates/zshrc.j2 +++ b/templates/zshrc.j2 @@ -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