diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 1b469e6..2367790 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -15,7 +15,7 @@ alias \ # Kubernetes things alias \ - cx="kubectl ctx" \ + cx="kubectl-ctx" \ f='flux' \ h='helm' \ k='kubectl' \ diff --git a/.config/zsh/completion b/.config/zsh/completion index badca35..5de8212 100644 --- a/.config/zsh/completion +++ b/.config/zsh/completion @@ -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