From 893d5e96cf4d8f27cb85249c224f67aa14e493b6 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 18 Jan 2026 16:49:23 +0000 Subject: [PATCH] Enable kubectl oh-my-zsh plugin for proper completions --- dot_oh-my-zsh/custom/tools/kubectl.zsh | 6 +----- dot_zshrc | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dot_oh-my-zsh/custom/tools/kubectl.zsh b/dot_oh-my-zsh/custom/tools/kubectl.zsh index 25cbd50..c451e71 100644 --- a/dot_oh-my-zsh/custom/tools/kubectl.zsh +++ b/dot_oh-my-zsh/custom/tools/kubectl.zsh @@ -1,10 +1,6 @@ # Kubectl configuration # Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/ -# Note: This must run after compinit, which oh-my-zsh handles - -if command -v kubectl >/dev/null 2>&1; then - source <(kubectl completion zsh) -fi +# Note: Completions are handled by the kubectl plugin in .zshrc # Load golang path if exists [[ -f /etc/profile.d/golang_path.sh ]] && source /etc/profile.d/golang_path.sh diff --git a/dot_zshrc b/dot_zshrc index f806e5c..f726055 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -39,6 +39,7 @@ plugins=( git encode64 gitignore + kubectl z )