Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: killall completion
- X-seq: zsh-users 14622
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh list <zsh-users@xxxxxxx>
- Subject: Re: killall completion
- Date: Tue, 1 Dec 2009 19:41:17 +0000
- In-reply-to: <4B14AAA3.3090609@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4B14AAA3.3090609@xxxxxxxxxxxxx>
On Tue, 01 Dec 2009 08:33:23 +0300
sergio <mailbox@xxxxxxxxxxxxx> wrote:
> I don't understand how to make completion for processes list and signals
> in one _arguments.
Look at Completion/Zsh/Command/_kill, which does something similar. The
trick is to treat the signal as the first argument. I'm not quite sure
how it gets away with letting you complete processes without a signal,
but it does seem to work.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author