Kubectl Autocomplete on MacOS

vim ~/.zshrc
alias k=kubectl
autoload -U +X compinit && compinit
[[ /usr/local/bin/kubectl ]] && source <(kubectl completion zsh)

esc > wq > enter

Views: 49