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@xxxxxxxxxxxxxxxxx | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships
Attachment:
pgpF8S1vigYXL.pgp
Description: PGP signature