about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-12-21 16:33:39 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-12-21 16:33:39 +0000
commit1b608e1b9af7a86c7c26c5f8aea27602af3077ea (patch)
tree1258c01138b360a911cbae72f8065dc2ede2cd15 /Completion/Unix
parent1d6f9fc0f03422007adc7fd23328d53691b9513f (diff)
downloadzsh-1b608e1b9af7a86c7c26c5f8aea27602af3077ea.tar.gz
zsh-1b608e1b9af7a86c7c26c5f8aea27602af3077ea.tar.xz
zsh-1b608e1b9af7a86c7c26c5f8aea27602af3077ea.zip
16372: allow signal names to be prefixed by `SIG' with kill builtin and fix
problem with no argument to kill -n and -s options
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_signals3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_signals b/Completion/Unix/Type/_signals
index f882ca9ff..32cb8285c 100644
--- a/Completion/Unix/Type/_signals
+++ b/Completion/Unix/Type/_signals
@@ -21,9 +21,10 @@ fi
 
 if [[ -z "$minus" ]] ||
    ! zstyle -T ":completion:${curcontext}:signals" prefix-needed ||
-   [[ "$PREFIX" = -* ]]; then
+   [[ -prefix -* ]]; then
   local disp tmp
 
+  [[ -prefix ${minus}SIG* ]] && minus+=SIG
   if zstyle -t ":completion:${curcontext}:signals" prefix-hidden; then
     tmp=( "${(@)signals[1,last]}" )
     disp=(-d tmp)