Cannot get kubectl
bash completion to work on Mac. I installed bash-completion
with brew
i.e. brew install bash-completion
then as per the install notes, added it to the ~/.bash_profile
:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
But still getting the error kubectl -bash: _init_completion: command not found
after re-sourcing the profile.