From ecf4321e6e2eb79abd48d787cdb37abb48a283a7 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 14 Mar 2007 21:16:10 +0000 Subject: 23215: completion for "module". --- Completion/Unix/Command/_module | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Completion/Unix/Command/_module (limited to 'Completion/Unix/Command/_module') 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 -- cgit 1.4.1