Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: better killall completion
- X-seq: zsh-workers 13315
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: better killall completion
- Date: Wed, 27 Dec 2000 11:35:15 -0500
- In-reply-to: <20001226233125.A31760@xxxxxxxx>; from schizo@xxxxxxxxxx on Tue, Dec 26, 2000 at 11:31:25PM -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20001226161905.A29400@xxxxxxxx> <20001226233125.A31760@xxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author