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

Re: simple completion example?



Andy Spiegl wrote:
> > Try looking at _aptitude instead. It's a lot simpler.
> Hm, but the aptitude completion doesn't work with the commands (install,
> purge, ...) just the options.

It does work with the commands. It runs `aptitude -h' and parses the
result to get a list of the commands (and descriptions) so perhaps you
don't have aptitude installed. If it doesn't find aptitude installed, it
won't complete any commands. Try adding in a manual assignment to the
cmds array:

cmds=( install:install/upgrade\ packages remove:remove\ packages )

You should then see how it should work. You could also look at _xauth
but that doesn't handle options.

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



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