How do i add bash command completion to kubernetes?



  • If you type in a kubernetes command and hit ESC, it will not by default complete the command on the bash shell prompt.

    To set it up

    $ source <(kubectl completion bash)
    $  echo "source <(kubectl completion bash)" >> ~/.bashrc
    


© Lightnetics 2024