mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-19 02:20:41 +03:00
Update with tab completion for kubectl
Update with tab completion for kubectl
This commit is contained in:
@@ -99,6 +99,13 @@ 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 && bash
|
||||||
|
```
|
||||||
|
>You can also omit the "&& bash" and reload the shell later.
|
||||||
|
>This will only enable tab completion for your current user.
|
||||||
|
|
||||||
### Verification
|
### Verification
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user