Config

source <(kubectl completion bash)

Add the following to your .bashrc file:

alias k='kubectl'
complete -F __start_kubectl k
source ~/.bashrc