about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Command/_autoload10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_autoload b/Completion/Zsh/Command/_autoload
new file mode 100644
index 000000000..81ded019a
--- /dev/null
+++ b/Completion/Zsh/Command/_autoload
@@ -0,0 +1,10 @@
+#compdef autoload
+
+local expl
+
+if (( $words[(I)[-+]*w*] )); then
+  _description files expl 'zwc file'
+  _files "$expl[@]" -g '*.zwc'
+else
+  _wanted functions expl 'shell function' compadd - ${^fpath}/*(:t)
+fi