Install Kubernetes Kubectl Shell Autocomplete

In this short blog post, I will show you how to install the Kubernetes kubectl autocomplete command-line.

Using autocomplete can shorten the time it takes to type kubectl commands and remove the guesswork out of the picture.

Enable Autocomplete

To enable kubectl autocomplete type the following commands in your shell.

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.