diff --git a/docs/02-client-tools.md b/docs/02-client-tools.md index f4ef130..c845305 100644 --- a/docs/02-client-tools.md +++ b/docs/02-client-tools.md @@ -99,6 +99,14 @@ chmod +x kubectl ``` sudo mv kubectl /usr/local/bin/ ``` +The following steps will enable shell tab completion on kubectl while using bash: + +``` +echo "source <(kubectl completion bash)" >> ~/.bashrc && . ~/.bashrc +``` +> This will only enable tab completion for your current user. +> You can also run `echo "source <(kubectl completion bash)" >> /etc/profile.d/kubectl_completion.sh . /etc/profile` to get tab completion for all users. + ### Verification