From 147452cd73cb8015044e688707419221b5159e97 Mon Sep 17 00:00:00 2001 From: Sven Batista Steinbach Date: Sat, 27 Jul 2024 14:27:39 +0200 Subject: [PATCH] :seedling: adding completion --- dot_zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index 4eb0b7a..39376f3 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -24,10 +24,12 @@ export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/go/bin # load zsh completion files fpath=(~/.zsh/completions $fpath) -autoload -U compinit && compinit + +source <(kubectl completion zsh) +alias k=kubectl +compdef __start_kubectl k setopt inc_append_history share_history autocd autopushd pushdignoredups -setopt COMPLETE_ALIASES zstyle ':completion::complete:*' gain-privileges 1