Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _killall on linux
- X-seq: zsh-workers 12203
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: _killall on linux
- Date: Sat, 8 Jul 2000 17:02:05 +0000
- In-reply-to: <20000708164920.A19816@xxxxxxxxxxxxxxxxx>Comments: In reply to Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx> " killall on linux" (Jul 8, 4:49pm)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000708164920.A19816@xxxxxxxxxxxxxxxxx>
On Jul 8, 4:49pm, Thomas Köhler wrote:
} Subject: _killall on linux
}
} Now, the problem is: _killall won't complete all process names. This is
} not a big deal for "normal" users, but root may have to kill other
} user's processes, too. May I suggest something like this (completing
} _all_ process names for super users)
We could put something like that [*] in, but you should note that this
can already be configured via a style in root's .zshrc:
zstyle ':completion:*:processes-names' command ps xa ho comm
Making that configurable is the reason for the $(_call ...) expression.
It's a bit weird that it's "processes-names" rather than "process-names".
(Was there some reason for that? It's not completing both processes and
names, and one doesn't normally use the possessive "processes' names" to
refer to "names of processes".)
[*] Rather than $( [[ "$UID" = 0 ]] && print -n xa ) I'd suggest the less
resource-intensive ${=EUID//(#s)0(#e)/ps xa}.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author