Hi. In my last exam I used the following command to install kubectl autocomplete . . .

Anish Nagaraj:
Hi. In my last exam I used the following command to install kubectl autocomplete. Even then it did not work. Has anybody experienced the same.?

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.

Martin Spilovsky:
Hi @Anish Nagaraj was just testing it randomly on an home lab, but it works, you need to source it ( . ./.bashrc) or start a new shell so it should be loaded automatically