Add missing instruction for zsh on Linux (#173)

* Add missing instruction for zsh on Linux

* Add completion reloading to .zshrc
This commit is contained in:
Eugene Aseev 2019-09-09 23:13:33 +08:00 committed by Ahmet Alp Balkan
parent a21638226f
commit c3dd1e5deb

View File

@ -125,7 +125,7 @@ them to any POSIX environment that has Bash installed.
ln -s /opt/kubectx/completion/kubectx.zsh ~/.oh-my-zsh/completions/_kubectx.zsh
ln -s /opt/kubectx/completion/kubens.zsh ~/.oh-my-zsh/completions/_kubens.zsh
```
Note that the leading underscore seems to be a convention.
Note that the leading underscore seems to be a convention. If completion doesn't work, add `autoload -U compinit && compinit` to your `.zshrc` (similar to [`zsh-completions`](https://github.com/zsh-users/zsh-completions/blob/master/README.md#oh-my-zsh)).
If not using oh-my-zsh, you could link to `/usr/share/zsh/functions/Completion` (might require sudo), depending on the `$fpath` of your zsh installation.
In case of error, calling `compaudit` might help.
- For bash: