Tab-completion
About 179 wordsLess than 1 minute
2026-07-10
kush completion generates a shell-completion script so context names complete on TAB. Install it once and you stop typing (or misremembering) full context names.
kush completion bash
kush completion zsh
kush completion fishThis is a standard cobra completion script, generated for your shell and loaded the usual way:
bash
Install completion (bash)
echo 'source <(kush completion bash)' >> ~/.bashrc
source ~/.bashrczsh
Install completion (zsh)
echo 'source <(kush completion zsh)' >> ~/.zshrc
source ~/.zshrcfish
Install completion (fish)
kush completion fish > ~/.config/fish/completions/kush.fishOnce it's loaded, context names complete wherever kush expects one:
Tab-complete a context
$ kush ctx [TAB]
dev prod staging
$ kush [TAB]
dev prod staging
$ kush exec [TAB]
dev prod stagingkush ns stays free-text; completing namespaces would mean kush making a call to the cluster's API, and kush never does that.
To show the active context in your prompt rather than complete it, see Show your context in the prompt.
