Fix kubectl zsh completion instructions

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan
2017-10-02 20:43:54 -07:00
parent 82d474c851
commit e431c22ebc
+5 -3
View File
@@ -187,11 +187,13 @@ kubectl completion bash > $(brew --prefix)/etc/bash_completion.d/kubectl
The Homebrew project is independent from Kubernetes, so the bash-completion packages are not guaranteed to work.
### Using Oh-My-Zsh
When using [Oh-My-Zsh](http://ohmyz.sh/), edit the ~/.zshrc file and update the `plugins=` line to include the kubectl plugin.
### Using zsh
To add kubectl autocompletion to your ZSH profile, add the following line to
the ~/.zshrc file:
```shell
plugins=(git zsh-completions kubectl)
source <(kubectl completion zsh)
```
{% endcapture %}