zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: ps http<tab> completion to get procees ID
Date: Thu, 30 Jul 2015 15:42:01 +0000	[thread overview]
Message-ID: <20150730154201.GD2264@tarsus.local2> (raw)
In-Reply-To: <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:

    % ps
    ...
    > 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.

Cheers,

Daniel


  reply	other threads:[~2015-07-30 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 12:34 zzapper
2015-07-28 19:19 ` Bart Schaefer
2015-07-30 15:42   ` Daniel Shahaf [this message]
2015-07-30 16:16     ` Oliver Kiddle
2015-07-31 22:52       ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150730154201.GD2264@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).