Home

Published

- 1 min read

kubectl completion zsh

img of kubectl completion zsh

The solution for this is noted below

kubectl completion zsh

Solution

   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

Try other methods by searching on the site. That is if this doesn’t work