summary refs log tree commit diff
path: root/Completion/Zsh/Command/_kill
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-07 14:38:13 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-07 14:38:13 +0000
commit90bbd87734053303751d401a807be8a7fe3b9176 (patch)
tree3ea728b70c4fd811c83659de35278677b7c31ca7 /Completion/Zsh/Command/_kill
parentad41ecec2b030446aacf8337e67da81ab189caaa (diff)
downloadzsh-90bbd87734053303751d401a807be8a7fe3b9176.tar.gz
zsh-90bbd87734053303751d401a807be8a7fe3b9176.tar.xz
zsh-90bbd87734053303751d401a807be8a7fe3b9176.zip
fixes for completion of signal names with SIG prefix and for completing command names instead of pids (16406)
Diffstat (limited to 'Completion/Zsh/Command/_kill')
-rw-r--r--Completion/Zsh/Command/_kill6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Zsh/Command/_kill b/Completion/Zsh/Command/_kill
index 8887be5fc..5e52a99de 100644
--- a/Completion/Zsh/Command/_kill
+++ b/Completion/Zsh/Command/_kill
@@ -4,12 +4,12 @@ local curcontext="$curcontext" line state ret=1
 
 _arguments -C \
   '(-s -l 1)-n[specify signal number]:signal number' \
-  '(-n -l 1)-s[specify signal name]:signal:_signals' \
+  '(-n -l 1)-s[specify signal name]:signal:_signals -s' \
   '(-n -s)-l[list signal names or numbers of specified signals]:*:signal:_signals' \
-  '(-n -s -l)1::signal:_signals -p' \
+  '(-n -s -l)1::signal:_signals -p -s' \
   '*:processes:->processes' && ret=0
   
-if [[ -n "$state" && -prefix [%0-9]# ]]; then
+if [[ -n "$state" ]]; then
   _alternative \
     'processes:: _pids' \
     'jobs:: _jobs -t' && ret=0