Zsh Mailing List Archive
Messages sorted by:
Re: ps http<tab> completion to get procees ID
- X-seq: zsh-users 20371
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: ps http<tab> completion to get procees ID
- Date: Thu, 30 Jul 2015 15:42:01 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=NW84k7ieRPlGL8wRyM8btXwQfv8=; b=w9H7E3 HWSfLKQ9pdU+bH11saIyIOT/dUXM55u/TlaxQ7CiI/Bcyp0/vweJmhzZQrJHnbbX uic/wUyMS6SVZktVzt8mkcj60RFot1x9ZLrLceOf4FsoNJrwEOWnwxHXcUSKKJZB VPcIcctki+ig5SHSv6pP8weF8ZHzuRum4jhvY=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=NW84k7ieRPlGL8wRyM8btXwQfv8=; b=cIxi9 Qa0o2hCn/v6aaRNE6dwpf/n02WO3OdcBHN/RflspYB6he9wmfT60kYNEmtVKb7L+ my/DRXNxdvRI1QqFxyZ4mOSYKfi1mX1bHyOUDPQQxGoq7TkDC6mqgrN7GHh6bly+ O11zHN5o2K+veOMJF8EWANZVa/BgH4T1C+z/uI=
- In-reply-to: <150728121925.ZM8124@torch.brasslantern.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA4E58A28DA190davidrayninfocouk@126.96.36.199> <150728121925.ZM8124@torch.brasslantern.com>
Bart Schaefer wrote on Tue, Jul 28, 2015 at 12:19:25 -0700:
> On Jul 28, 12:34pm, zzapper wrote:
> } This works on my Cygwin zsh 5.0.8
> } but not on my Centos zsh 5.0.7
> } what needs to be configured to get this marvellous feature to work?
> Install 5.0.8 on your CentOS?
> There were a lot of changes to _main_complete as well as to _ps between
> the .7 and .8 releases. Debug trace is radically different for the two.
> It *seems* to work to just copy the 5.0.8 _ps file into fpath somewhere
> ahead of the 5.0.7 version, but I can't promise something obscure won't
> go wrong.
It seems to only complete processes from the current terminal. For
example, if I just do 'ps <TAB>', I get:
> process ID
23620 pts/11 00:00:00 zsh
23647 pts/11 00:00:00 zsh
23648 pts/11 00:00:00 ps
> all matches
I guess that's due to _pids running 'ps' without further arguments.
Shouldn't the command be configurable? I'd love to have it show all
user processes (or even all processes when sudoed).
For 'kill' we already allow customizing the listing format via the
'command' style; I suppose it would be nice to support the same here.
Messages sorted by: