Add completion for kubectl-ctx

This commit is contained in:
dabruh 2022-12-14 15:44:18 +01:00
parent 9d4bd9c858
commit b8e2e5568e
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ alias \
# Kubernetes things
alias \
cx="kubectl ctx" \
cx="kubectl-ctx" \
f='flux' \
h='helm' \
k='kubectl' \

View File

@ -6,3 +6,4 @@ command -v kubectl >/dev/null && . <(kubectl completion zsh) && complete -F __st
command -v velero >/dev/null && . <(velero completion zsh) && complete -F __start_velero v
command -v helm >/dev/null && . <(helm completion zsh) && complete -F _helm h
command -v flux >/dev/null && . <(flux completion zsh) && complete -F _flux f
command -v kubectl-ctx >/dev/null && complete -W "$(kubectl-ctx)" kubectl-ctx