Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] zsh pidof completion
- X-seq: zsh-workers 38614
- From: Marko Myllynen <myllynen@xxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] zsh pidof completion
- Date: Sun, 5 Jun 2016 17:34:16 +0300
- Cc: zsh workers <zsh-workers@xxxxxxx>
- In-reply-to: <20160603204040.GA32705@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Red Hat
- References: <57514BF6.6080307@redhat.com> <20160603204040.GA32705@tarsus.local2>
- Reply-to: Marko Myllynen <myllynen@xxxxxxxxxx>
Hi,
On 2016-06-03 23:40, Daniel Shahaf wrote:
> Marko Myllynen wrote on Fri, Jun 03, 2016 at 12:20:54 +0300:
>> Otherwise it works nicely but I'm a bit wondering one thing here: -o
>> can either repeated on the command line of the PID to be omitted can be
>> provided as a comma-separated list but I don't see a readily available
>> method to complete a comma-separated list. No biggie, but if there's
>> trivial way to do that, please let me know.
>
> I think you're looking for _sequence:
>
> % compdef '_sequence -s , _pids' f
> % f <TAB>
Thanks, that's exactly what I was missing! (It has been added since
5.0.2 which is in use on RHEL 7.)
>> It might also be nice to provide a generic _procnames type completion
>> like there's one now for _pids but I'll leave it for a separate effort
>> now.
>
> What would _process_names do?
Offer process names instead of process IDs, there might few potential
users for it in the tree already (_killall, _lldb, and _pgrep).
Thanks,
--
Marko Myllynen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author