This commit is contained in:
Denis Salamanca
2018-09-30 20:03:44 +00:00
committed by GitHub

View File

@@ -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