I installed ohmyz.sh , on my mac book , i want to install kubectl autocompletion plugin for zsh , but not aware of the steps to install , can any one help on this please ?
Another option: I like having the following setup;
~/.zshrc: define which plugins I want to load
...
plugins=(
git
...
kubectl
)
...
~/.oh-my-zsh/custom/plugins/*: define my custom plugins, in this case override the kubectl from OhMyZsh with the file that this command generates:
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl.plugin.zsh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With