Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: add -s option to _disable



Adds the -s option, for removing suffix aliases, to disable completion.

Regards,
Doug

Index: Completion/Zsh/Command/_disable
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_disable,v
retrieving revision 1.2
diff -u -r1.2 _disable
--- Completion/Zsh/Command/_disable	18 Jun 2004 17:49:21 -0000	1.2
+++ Completion/Zsh/Command/_disable	6 Jun 2005 13:01:21 -0000
@@ -1,8 +1,9 @@
 #compdef disable
 
 _arguments -C -s -A "-*" -S \
-  "(-f -r)-a[act on aliases]:*:aliases:(${(k)aliases} ${(k)galiases})" \
-  "(-a -r)-f[act on functions]:*:functions:(${(k)functions})" \
-  "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \
+  "(-f -r -s)-a[act on regular or global aliases]:*:regular or global aliases:(${(k)aliases} ${(k)galiases})" \
+  "(-a -r -s)-f[act on functions]:*:functions:(${(k)functions})" \
+  "(-a -f -s)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \
+  "(-a -f -r)-s[act on suffix aliases]:*:suffix aliases:(${(k)saliases})" \
   '-m[treat arguments as patterns]' \
   "*:builtin command:(${(k)builtins})"



Messages sorted by: Reverse Date, Date, Thread, Author