about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_disable9
-rw-r--r--Completion/Zsh/Context/_equal5
2 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_disable b/Completion/Zsh/Command/_disable
new file mode 100644
index 000000000..3b627fb5f
--- /dev/null
+++ b/Completion/Zsh/Command/_disable
@@ -0,0 +1,9 @@
+#compdef disable
+
+_arguments -C -s -A "-*" -S \
+  "(-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})"
diff --git a/Completion/Zsh/Context/_equal b/Completion/Zsh/Context/_equal
new file mode 100644
index 000000000..a1577d62c
--- /dev/null
+++ b/Completion/Zsh/Context/_equal
@@ -0,0 +1,5 @@
+#compdef -equal-
+
+local expl
+
+_wanted commands expl command compadd -k commands