From 957d1990b6eb83e27127e725864dac8c4c9b652b Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Fri, 28 Sep 2018 15:22:46 +0300 Subject: Fix wrong description of script installation The described way of installation makes zsh fail with `_arguments:comparguments:325: can only be called from completion function`. Per [zsh documentation](https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org#telling-zsh-which-function-to-use-for-completing-a-command) the correct way is to use `$fpath`. --- misc/zsh-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/zsh-completion b/misc/zsh-completion index bf23fac..4cee3b8 100644 --- a/misc/zsh-completion +++ b/misc/zsh-completion @@ -14,7 +14,7 @@ # limitations under the License. # Add the following to your .zshrc to tab-complete ninja targets -# . path/to/ninja/misc/zsh-completion +# fpath=(path/to/ninja/misc/zsh-completion $fpath) __get_targets() { dir="." -- cgit v0.12