about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:25:43 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:25:43 +0000
commiteca1b931f5f4f8aaa59067ee8c696ab84ef97cee (patch)
tree3cd5e6e073ee6d9565c2d0c588a280aca09016e9 /Completion/Zsh
parente056b8daea0fc351328c902a05fd86ea334ae03e (diff)
downloadzsh-eca1b931f5f4f8aaa59067ee8c696ab84ef97cee.tar.gz
zsh-eca1b931f5f4f8aaa59067ee8c696ab84ef97cee.tar.xz
zsh-eca1b931f5f4f8aaa59067ee8c696ab84ef97cee.zip
moved from Completion/Builtins/_autoload
Diffstat (limited to 'Completion/Zsh')
-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