diff options
author | Konstantin Kharlamov <Hi-Angel@users.noreply.github.com> | 2018-09-28 12:22:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 12:22:46 (GMT) |
commit | 957d1990b6eb83e27127e725864dac8c4c9b652b (patch) | |
tree | 6a901ef948cd99e51d79a64813b70c13a8f7689d /misc | |
parent | ca041d88f4d610332aa48c801342edfafb622ccb (diff) | |
download | Ninja-957d1990b6eb83e27127e725864dac8c4c9b652b.zip Ninja-957d1990b6eb83e27127e725864dac8c4c9b652b.tar.gz Ninja-957d1990b6eb83e27127e725864dac8c4c9b652b.tar.bz2 |
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`.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/zsh-completion | 2 |
1 files changed, 1 insertions, 1 deletions
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="." |