Enable kubectl oh-my-zsh plugin for proper completions
This commit is contained in:
parent
13748104a8
commit
93e2d072e0
2 changed files with 2 additions and 5 deletions
|
|
@ -1,10 +1,6 @@
|
||||||
# Kubectl configuration
|
# Kubectl configuration
|
||||||
# Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/
|
# Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/
|
||||||
# Note: This must run after compinit, which oh-my-zsh handles
|
# Note: Completions are handled by the kubectl plugin in .zshrc
|
||||||
|
|
||||||
if command -v kubectl >/dev/null 2>&1; then
|
|
||||||
source <(kubectl completion zsh)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Load golang path if exists
|
# Load golang path if exists
|
||||||
[[ -f /etc/profile.d/golang_path.sh ]] && source /etc/profile.d/golang_path.sh
|
[[ -f /etc/profile.d/golang_path.sh ]] && source /etc/profile.d/golang_path.sh
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ plugins=(
|
||||||
git
|
git
|
||||||
encode64
|
encode64
|
||||||
gitignore
|
gitignore
|
||||||
|
kubectl
|
||||||
z
|
z
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue