install bash completion
sudo apt-get install -y bash-completion
alias
echo 'alias k=kubectl' >>~/.bashrc
echo "source <(kubectl completion bash)" >> ~/.bashrc
activate the new rule
source ~/.bashrc
install bash completion
sudo apt-get install -y bash-completion
alias
echo 'alias k=kubectl' >>~/.bashrc
echo "source <(kubectl completion bash)" >> ~/.bashrc
activate the new rule
source ~/.bashrc