Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Writing multi-part command completion functions



Is there a recommended way to deal with multi-part commands.  For
example, many of  the source control systems cvs, rcs, sccs, and prcs
all have a main command, with the first argument typically being a
sub-command.  Many times the sub-command can be abbreviated.

There are already some completion functions that handle commands like
this (e.g. _cvs).  Is there a preferred way to do this? Is there one
that provides a better example of how to structure such a completion
function(s)?  Would it make sense to add support to make it easier to write
such a function?

Thanks
-FR.


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



Messages sorted by: Reverse Date, Date, Thread, Author