Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: simple completion example?
- X-seq: zsh-users 9217
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: simple completion example?
- Date: Wed, 03 Aug 2005 12:19:06 +0200
- In-reply-to: <20050803101007.GA9755@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050802180158.GA10402@xxxxxxxxx> <19401.1123058911@xxxxxxxxxxxxxxxxxxxxxxx> <20050803101007.GA9755@xxxxxxxxx>
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