about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog15
-rw-r--r--Completion/Unix/Command/_module29
2 files changed, 39 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 80f900ef2..fb2a3f5cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2007-03-14  Clint Adams  <clint@zsh.org>
+
+	* 23215: Completion/Unix/Command/_module: completion for
+	"module".
+
 2007-03-13  Clint Adams  <clint@zsh.org>
 
-	* 23214: Completion/Unix/Commands/_subversion: complete files
+	* 23214: Completion/Unix/Command/_subversion: complete files
 	after svn commit --file.
 
 2007-02-10  Felix Rosencrantz <f.rosencrantz@gmail.com>
@@ -10,7 +15,7 @@
 
 2007-03-08  Clint Adams  <clint@zsh.org>
 
-	* 23206: Completion/Unix/Commands/_mercurial: completion for hg.
+	* 23206: Completion/Unix/Command/_mercurial: completion for hg.
 
 2007-03-05  Clint Adams  <clint@zsh.org>
 
@@ -38,7 +43,7 @@
 
 2007-02-27  Peter Stephenson  <pws@csr.com>
 
-	* unposted: Completion/Unix/Commands/_ip: another typo
+	* unposted: Completion/Unix/Command/_ip: another typo
 	(rule_cmds).
 
 2007-02-26  Peter Stephenson  <pws@csr.com>
@@ -47,7 +52,7 @@
 	on Linux and fall back to old method in order to pick up
 	additional interface types.
 
-	* unposted: Completion/Unix/Commands/_ip: tweak ip route
+	* unposted: Completion/Unix/Command/_ip: tweak ip route
 	show abbreviations.
 
 2007-02-25  Barton E. Schaefer  <schaefer@zsh.org>
@@ -66,7 +71,7 @@
 2007-02-25  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23186: Completion/Base/Utility/_regex_words,
-	Completion/Unix/Commands/_ip (tweaked), Doc/Zsh/compsys.yo: add to
+	Completion/Unix/Command/_ip (tweaked), Doc/Zsh/compsys.yo: add to
 	regex completion handling and add new ip completion.
 
 2007-02-25  Barton E. Schaefer  <schaefer@zsh.org>
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