zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Sagar Shah <sagarshah@softhome.net>
Cc: zsh-users@sunsite.dk
Subject: Re: kill _pids completion - arguments for ps
Date: Mon, 25 Aug 2003 15:21:28 +0200	[thread overview]
Message-ID: <13925.1061817688@gmcs3.local> (raw)
In-Reply-To: <1061756595.2679.9.camel@localhost>

Sagar Shah wrote:
> 
> One of the alternatives for completing the kill command is a list of
> pids generated by the _pids function.
> 
> _pids calls the command 'ps' which just returns the child processes of
> the shell.
> 
> I'd actually prefer to return all processes owened by the current user
> (ps -u $LOGNAME on linux) and i get the impression there's a way to

Wherever the completion system runs a command like ps to generate
matches, it checks the `command' style so that you can specify a
replacement command. So pick your command and set the style:

e.g.:

zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'

If you only want to affect the kill command then:

zstyle ':completion:*:kill:*:processes' command 'ps -o pid,s,nice,stime,args'

Oliver


      reply	other threads:[~2003-08-25 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-25 12:40 Sagar Shah
2003-08-25 13:21 ` Oliver Kiddle [this message]

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=13925.1061817688@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --cc=sagarshah@softhome.net \
    --cc=zsh-users@sunsite.dk \
    /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).