about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_enable
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2013-10-09 17:28:53 +0200
committerMikael Magnusson <mikachu@gmail.com>2013-10-11 14:57:57 +0200
commit6f921b91f475f77c1447fed4cada24235958b13d (patch)
tree8a8802f80170567fd09a0a65de19d3058e2621e8 /Completion/Zsh/Command/_enable
parentfa033326357218652310c4510898be622b871c4f (diff)
downloadzsh-6f921b91f475f77c1447fed4cada24235958b13d.tar.gz
zsh-6f921b91f475f77c1447fed4cada24235958b13d.tar.xz
zsh-6f921b91f475f77c1447fed4cada24235958b13d.zip
31805: Update _enable and _disable for -p, fix related typo in docs
Diffstat (limited to 'Completion/Zsh/Command/_enable')
-rw-r--r--Completion/Zsh/Command/_enable8
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Zsh/Command/_enable b/Completion/Zsh/Command/_enable
index c5f8b2c43..f7737823f 100644
--- a/Completion/Zsh/Command/_enable
+++ b/Completion/Zsh/Command/_enable
@@ -1,8 +1,10 @@
 #compdef enable
 
 _arguments -C -s -A "-*" -S \
-  "(-f -r)-a[act on aliases]:*:aliases:(${(k)dis_aliases})" \
-  "(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \
-  "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k dis_reswords" \
+  "(-f -r -s -p)-a[act on regular or global aliases]:*:aliases:(${(k)dis_aliases} ${(k)dis_galiases})" \
+  "(-a -r -s -p)-f[act on functions]:*:functions:(${(k)dis_functions})" \
+  "(-a -f -s -p)-r[act on reserved words]:*:reserved-words:compadd -k dis_reswords" \
+  "(-a -f -r -p)-s[act on suffix aliases]:*:suffix aliases:(${(k)dis_saliases})" \
+  "(-a -f -r -s)-p[act on pattern characters]:*:pattern characters:compadd -k dis_patchars" \
   '-m[treat arguments as patterns]' \
   "*:builtin command:(${(k)dis_builtins})"