kubectl zsh completion code example
Example: kubectl completion zsh
echo 'source <(kubectl completion zsh)' >>~/.zshrc
# If you want to enable it with an alias
echo 'alias k=kubectl' >>~/.zshrc
echo 'complete -F __start_kubectl k' >>~/.zshrc
echo 'source <(kubectl completion zsh)' >>~/.zshrc
# If you want to enable it with an alias
echo 'alias k=kubectl' >>~/.zshrc
echo 'complete -F __start_kubectl k' >>~/.zshrc