From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10128 invoked from network); 27 Dec 2000 16:35:23 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Dec 2000 16:35:23 -0000 Received: (qmail 27044 invoked by alias); 27 Dec 2000 16:35:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13315 Received: (qmail 27037 invoked from network); 27 Dec 2000 16:35:17 -0000 Date: Wed, 27 Dec 2000 11:35:15 -0500 From: Clint Adams To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: better killall completion Message-ID: <20001227113515.B10488@dman.com> References: <20001226161905.A29400@dman.com> <20001226233125.A31760@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001226233125.A31760@dman.com>; from schizo@debian.org on Tue, Dec 26, 2000 at 11:31:25PM -0500 And now lets strip parentheses and leading paths. Index: Completion/User/_killall =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/User/_killall,v retrieving revision 1.5 diff -u -r1.5 _killall --- Completion/User/_killall 2000/12/27 04:34:05 1.5 +++ Completion/User/_killall 2000/12/27 16:27:48 @@ -3,7 +3,7 @@ if [[ "$OSTYPE" = linux* ]]; then _alternative \ 'signals:: _signals -p' \ - 'processes:process:{ compadd "$expl[@]" ${${${(f)"$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][]/}:#(ps|COMMAND|-*)}%%\ *} }' + 'processes:process:{ compadd "$expl[@]" ${${${${(f)"$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }' else _signals -p fi