mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 01:38:58 +03:00
Update 02-client-tools.md
This commit is contained in:
@@ -104,8 +104,9 @@ The following steps will enable shell tab completion on kubectl while using bash
|
|||||||
```
|
```
|
||||||
echo "source <(kubectl completion bash)" >> ~/.bashrc && . ~/.bashrc
|
echo "source <(kubectl completion bash)" >> ~/.bashrc && . ~/.bashrc
|
||||||
```
|
```
|
||||||
>You can also omit the "&& bash" and reload the shell later.
|
> This will only enable tab completion for your current user.
|
||||||
>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
|
### Verification
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user