From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-workers@sunsite.auc.dk
Subject: _killall on linux
Date: Sat, 8 Jul 2000 16:49:20 +0200 [thread overview]
Message-ID: <20000708164920.A19816@picard.franken.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 951 bytes --]
Hi,
I'm using zsh-3.1.9 and the new completion system.
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)
------- _killall -------
#compdef killall
if [[ "$OSTYPE" = linux* ]]; then
_alternative \
'signals:: _signals -p' \
'processes:process:{ compadd "$expl[@]" ${$(_call processes-names ps $( [[ "$UID" = 0 ]] && print -n xa ) ho comm 2> /dev/null):#(ps|COMMAND)} }'
else
_signals -p
fi
------- _killall -------
CU,
Thomas
--
Thomas Köhler Email: jean-luc@picard.franken.de | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2000-07-08 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-08 14:49 Thomas Köhler [this message]
2000-07-08 17:02 ` Bart Schaefer
2000-07-08 17:25 ` Bart Schaefer
2000-07-08 18:50 ` Thomas Köhler
2000-07-10 7:13 Sven Wischnowsky
2000-07-10 9:31 ` Bart Schaefer
2000-07-10 9:43 Sven Wischnowsky
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=20000708164920.A19816@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=zsh-workers@sunsite.auc.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).