qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.74k stars 148 forks source link

zsh: rework ZSH completion #30

Open vincentbernat opened 11 years ago

vincentbernat commented 11 years ago

The completion for ZSH is upgraded to the new ZSH completion system. To work, the file should be placed somewhere in ZSH fpath to be autoloaded when needed and named _sub.

There are other embedded misc changes:

The completion also handles plugins that are able to complete args. However, most plugins don't and will complete with a subcommand instead. I don't think there is an universal solution for this.

I am no ZSH wizard. Take this commit with care (works for me).

mislav commented 11 years ago

Looks good!

markstos commented 1 year ago

I'm not a ZSH user, but given that @mislav seems to have peer-reviewed this, I recommend merging this.