about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-03-14 21:16:10 +0000
committerClint Adams <clint@users.sourceforge.net>2007-03-14 21:16:10 +0000
commitecf4321e6e2eb79abd48d787cdb37abb48a283a7 (patch)
tree2e0dfc5a13bc6cc872a13cda463d8bd77d1415c5 /Completion
parent8f4c1bd0076fcd8c5f8e9245ada2660e5df9fefa (diff)
downloadzsh-ecf4321e6e2eb79abd48d787cdb37abb48a283a7.tar.gz
zsh-ecf4321e6e2eb79abd48d787cdb37abb48a283a7.tar.xz
zsh-ecf4321e6e2eb79abd48d787cdb37abb48a283a7.zip
23215: completion for "module".
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_module29
1 files changed, 29 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module
new file mode 100644
index 000000000..b44dbdb60
--- /dev/null
+++ b/Completion/Unix/Command/_module
@@ -0,0 +1,29 @@
+#compdef module
+
+local context state line
+typeset -A opt_args
+
+_arguments \
+  '(-f --force)'{--force,-f}'[force active dependency resolution]' \
+  '(-t --terse)'{--terse,-t}'[display avail and list output in short format]' \
+  '(-l --long)'{--long,-l}'[display avail and list output in long format]' \
+  '(-h --human)'{--human,-h}'[display short output in human-readable format]' \
+  '(-v --verbose)'{--verbose,-v}'[verbose]' \
+  '(-s --silent)'{--silent,-s}'[disable verbose messages]' \
+  '(-c --create)'{--create,-c}'[create caches]' \
+  '(-i --icase)'{--icase,-i}'[case insensitive]' \
+  '(-i --icase)'{--icase,-i}'[case insensitive]' \
+  '(-u --userlvl)'{--userlvl,-u}'[set user level to value]:level:(novice expert advanced)' \
+  '*::command:->subcmds' && return 0
+
+case "$state" in
+  (subcmds)
+    if (( CURRENT == 1 )); then
+      compadd -- help load add unload rm switch swap display show list \
+                 avail use unuse update clear purge whatis apropos keyword \
+		 initadd initprepend initswitch initlist initclear
+    else
+      _files
+    fi
+  ;;
+esac