From 0d1cb319c71eb178be8c6a27d4563ad22aa429f2 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 15 Jan 2024 10:01:46 +0100 Subject: [PATCH] Add plugins --- templates/zshrc.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/zshrc.j2 b/templates/zshrc.j2 index dbb7b5f..9ca4288 100644 --- a/templates/zshrc.j2 +++ b/templates/zshrc.j2 @@ -80,7 +80,7 @@ ZSH_THEME="agnoster" # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git) +plugins=(git kubectl kube-ps1) source $ZSH/oh-my-zsh.sh @@ -129,4 +129,7 @@ fi # Initialize the autocompletion autoload -Uz compinit && compinit -i -source <(kubectl completion zsh) +if [[ -z $KUBECTL_COMPLETE ]]; then + source <(kubectl completion zsh) + KUBECTL_COMPLETE=1 +fi