mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 01:38:58 +03:00
Merge e5e10c4c04 into bf2850974e
This commit is contained in:
@@ -99,6 +99,14 @@ chmod +x kubectl
|
|||||||
```
|
```
|
||||||
sudo mv kubectl /usr/local/bin/
|
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
|
### Verification
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user