zsh-users
 help / color / mirror / code / Atom feed
From: Sagar Shah <sagarshah@softhome.net>
To: zsh-users@sunsite.dk
Subject: kill _pids completion - arguments for ps
Date: Mon, 25 Aug 2003 13:40:27 +0100	[thread overview]
Message-ID: <1061756595.2679.9.camel@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

Hi,

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
configure the completion system to use a custom command for the ps call
or a custom set of arguments. However i can't figure out how to do this.

This question was asked in the list a few years ago, but no solution
using the new syntax.

Am i right in thinking this is posible?  Or do i need to copy the entire
_pids function and hack it?

Any help would be much appreciated.

Regards

Sagar

-- 
Sagar Shah <sagarshah@softhome.net>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2003-08-25 12:40 UTC|newest]

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

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=1061756595.2679.9.camel@localhost \
    --to=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).