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

Re: killall completion



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