if [[ -n "$(which-command kubectl)" ]]; then
  source <( kubectl completion bash )
fi