bobthecow/git-flow-completion

Installing the ZSH completion system-wide

algernon opened this issue · 2 comments

I'm looking into installing the ZSH completion system-wide, in such a way that it would just work, out of t he box, like the completions that come with stock ZSH, without the need to source it in one's .zshrc, or anything similar.

The bash completion works like a charm this way, I can just drop it into /etc/bash_completion.d/ and be done with it. The ZSH completion, however, doesn't. If I put it into /usr/share/zsh/functions/Completion/Unix, under the name _git-flow, it doesn't autoload. If I do an autoload _git-flow at that point, it starts to work, but not before.

It would be very useful, if the ZSH completion could be installed system-wide, the same way the bash completion can be. However, my ZSH knowledge is sadly lacking, especially with regards to completion: I don't even know where and how to start debugging the issue.

I'm sorry, I don't use ZSH at all, so I wouldn't even know where to start.

Closing this due to inactivity. If anyone knows anything about this, please feel free to contribute :)