kubectl with ZSH (oh-my-zsh) How to configure Use the following commands to add the kubectl autocomplete to zsh: mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/ kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh