about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_compdef
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-03-27 16:10:07 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-03-27 16:10:07 +0000
commitac88d2bbefb45549c4960f7c4e4d58b98a0819ab (patch)
tree08090ac715bb29247b0a30046a40455c0abed873 /Completion/Zsh/Command/_compdef
parent1f14da726e087072c5d84ba6c0d61833af7e2476 (diff)
downloadzsh-ac88d2bbefb45549c4960f7c4e4d58b98a0819ab.tar.gz
zsh-ac88d2bbefb45549c4960f7c4e4d58b98a0819ab.tar.xz
zsh-ac88d2bbefb45549c4960f7c4e4d58b98a0819ab.zip
16913: fix completion after compdef -a and correct typos
Diffstat (limited to 'Completion/Zsh/Command/_compdef')
-rw-r--r--Completion/Zsh/Command/_compdef9
1 files changed, 5 insertions, 4 deletions
diff --git a/Completion/Zsh/Command/_compdef b/Completion/Zsh/Command/_compdef
index 48daa9e53..469b135c4 100644
--- a/Completion/Zsh/Command/_compdef
+++ b/Completion/Zsh/Command/_compdef
@@ -13,7 +13,7 @@ if (( ! ${words[2,-1][(I)[^-]*]} || ${words[(I)-[kK]]} )); then
   )
   args2=(
      - d
-      '(-a -n)-d[delete]:*:completed command:->ccom'
+      '-d[delete]:*:completed command:->ccom'
      - k
       '-k[define widget and key binding]:completion function:->cfun:style:->style:*:key'
      - K
@@ -21,14 +21,15 @@ if (( ! ${words[2,-1][(I)[^-]*]} || ${words[(I)-[kK]]} )); then
   )
 else
   args1=(
-    '-N[completion for named command]'
+    '!-a' '!-n'
+    '*-N[completion for named command]'
   )
 fi
 
 _arguments -C -s -S \
   "$args1[@]" \
-  '-p[completion for command matching pattern]' \
-  '-P[completion for command matching pattern]' \
+  '*-p[completion for command matching pattern]' \
+  '*-P[completion for command matching pattern]' \
   ':completion function:->cfun' \
   '*:commands:->com' \
   "$args2[@]" && return 0