From eccbebc502159e248987874c8e0b47dd758bea3a Mon Sep 17 00:00:00 2001 From: Denis Salamanca <33235720+dsalamancaMS@users.noreply.github.com> Date: Thu, 7 Jun 2018 12:13:40 -0600 Subject: [PATCH] Update with tab completion for kubectl Update with tab completion for kubectl --- docs/02-client-tools.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/02-client-tools.md b/docs/02-client-tools.md index 7f0a2a0..d23605c 100644 --- a/docs/02-client-tools.md +++ b/docs/02-client-tools.md @@ -99,6 +99,13 @@ 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 && bash +``` +>You can also omit the "&& bash" and reload the shell later. +>This will only enable tab completion for your current user. ### Verification