I'm tired of writing all kubectl
and kubeadm
commands by hand. Is there any way of enabling autocomplete on these commands?
# Execut these commands
$ echo "source <(kubectl completion bash)" >> ~/.bashrc
$ echo "source <(kubeadm completion bash)" >> ~/.bashrc
# Reaload bash without logging out
$ source ~/.bashrc