From c3dd1e5debdfb38a752ca47cf1de7c40b5178b73 Mon Sep 17 00:00:00 2001 From: Eugene Aseev <14873170+easeev@users.noreply.github.com> Date: Mon, 9 Sep 2019 23:13:33 +0800 Subject: [PATCH] Add missing instruction for zsh on Linux (#173) * Add missing instruction for zsh on Linux * Add completion reloading to .zshrc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 576d720..32e67aa 100644 --- a/README.md +++ b/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