Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: better killall completion
- X-seq: zsh-workers 13312
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: better killall completion
- Date: Tue, 26 Dec 2000 16:19:05 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Since ps c truncates the command name, this change allows completion of
longer process names.
Index: Completion/User/_killall
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_killall,v
retrieving revision 1.3
diff -u -r1.3 _killall
--- Completion/User/_killall 2000/07/10 17:08:00 1.3
+++ Completion/User/_killall 2000/12/26 21:17:36
@@ -3,7 +3,7 @@
if [[ "$OSTYPE" = linux* ]]; then
_alternative \
'signals:: _signals -p' \
- 'processes:process:{ compadd "$expl[@]" ${$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho comm 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)}%%\ *} }'
else
_signals -p
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author