Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 957d199

Browse files
authored
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`.
1 parent ca041d8 commit 957d199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/zsh-completion

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
# Add the following to your .zshrc to tab-complete ninja targets
17-
# . path/to/ninja/misc/zsh-completion
17+
# fpath=(path/to/ninja/misc/zsh-completion $fpath)
1818

1919
__get_targets() {
2020
dir="."

0 commit comments

Comments
 (0)