Skip to content
Permalink
Browse files

Add missing instruction for zsh on Linux (#173)

* Add missing instruction for zsh on Linux

* Add completion reloading to .zshrc
  • Loading branch information...
easeev authored and ahmetb committed Sep 9, 2019
1 parent a216382 commit c3dd1e5debdfb38a752ca47cf1de7c40b5178b73
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
@@ -125,8 +125,8 @@ 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.
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.
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:
```bash

0 comments on commit c3dd1e5

Please sign in to comment.
You can’t perform that action at this time.