Tab Completion

I’m getting started with kubernetes and am wondering what I’m missing, I can’t seem to get tab completion to work in zsh. I tried zsh auto-completion | Kubernetes but completion doesn’t work, if I type kubectl it completes paths in my current folder.

If you run just source <(kubectl completion zsh) in your current session, does auto-completion work after that?

What contents did you put in ~/.zshrc? I would recommend dumping the configuration in with kubectl completion zsh >> ~/.zshrc after cleaning up the file.