Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete the subcommand's name #9

Open
danielshahaf opened this issue Jun 1, 2016 · 1 comment
Open

Complete the subcommand's name #9

danielshahaf opened this issue Jun 1, 2016 · 1 comment

Comments

@danielshahaf
Copy link

In zsh -f with autoload compinit && compinit [= standard minimal example setup], git ann<TAB> doesn't complete to git annex. That may be made to work by setting zstyle ':completion:*:*:git:*' user-commands annex in .zshrc. I would consider this a workaround to a missing feature in the upstream _git completion function, but all the same, I suggest to document in README.md the need to set that style.

If I have time I'll fix _git for zsh-5.3 (but even then the zstyle workaround would be needed with zsh≤5.2).

https://github.com/zsh-users/zsh/blob/770500d69db0cf9dcee6ed62455aa79a38ed182e/Completion/Unix/Command/_git#L12-L16

@danielshahaf
Copy link
Author

This problem only occurs with zsh 5.2 or older and only when the completion file is not copied into $fpath, but symlinked into it. The upstream fix (to be released in zsh 5.3) is zsh-users/zsh@713eaa0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant