When I use alias auto complete doesn't work I have to type, is there something I . . .

srikanth arani:
when I use alias auto complete doesn’t work I have to type, is there something I’m missing?
I’ve actually got it, in case it helps some one

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

unnivkn:
source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo “source <(kubectl completion bash)” >> ~/.bashrc # add autocomplete permanently to your bash shell.

alias k=kubectl
complete -F __start_kubectl k

unnivkn:
this will work for you

srikanth arani:
do you have to bash reload after doing this?