From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15439 invoked from network); 8 Jul 2000 17:02:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jul 2000 17:02:34 -0000 Received: (qmail 2250 invoked by alias); 8 Jul 2000 17:02:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12203 Received: (qmail 2241 invoked from network); 8 Jul 2000 17:02:19 -0000 From: "Bart Schaefer" Message-Id: <1000708170205.ZM3781@candle.brasslantern.com> Date: Sat, 8 Jul 2000 17:02:05 +0000 In-Reply-To: =?iso-8859-1?Q?=3C20000708164920=2EA19816=40picard=2Efranken?= =?iso-8859-1?Q?=2Ede=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_Thomas_K=F6hler_=3Cjean-luc=40pica?= =?iso-8859-1?Q?rd=2Efranken=2Ede=3E?= =?iso-8859-1?Q?________=22_killall_on_linux=22_=28Jul__8=2C__4=3A49pm=29?= References: <20000708164920.A19816@picard.franken.de> X-Mailer: Z-Mail (5.0.0 30July97) To: =?iso-8859-1?Q?Thomas_K=F6hler?= , zsh-workers@sunsite.auc.dk Subject: Re: _killall on linux MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Jul 8, 4:49pm, Thomas K=F6hler 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" =3D 0 ]] && print -n xa ) I'd suggest the le= ss resource-intensive ${=3DEUID//(#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 = =