ZSH Auto-completeion?

I’m trying to archive auto-completion under ZSH for microk8s sub-commands, for instance microk8s kubectl [TAB] should bring up all the available kubectl sub-commands.

I tried to define source <(microk8s kubectl completion zsh) under the “.zshrc” file but it apparently won’t work.

I also looked into the ohmyzsh plugins, but only found this one, however, it didn’t meet my expectations either.

1 Like