about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Cygwin/Command/_cygstart30
-rw-r--r--Completion/Debian/Command/_apt-move54
-rw-r--r--Completion/Unix/Command/_perl63
-rw-r--r--Completion/Unix/Command/_vux63
4 files changed, 210 insertions, 0 deletions
diff --git a/Completion/Cygwin/Command/_cygstart b/Completion/Cygwin/Command/_cygstart
new file mode 100644
index 000000000..c5a110b4c
--- /dev/null
+++ b/Completion/Cygwin/Command/_cygstart
@@ -0,0 +1,30 @@
+#compdef cygstart cygstart.exe
+#Generated by Felix Rosencrantz
+
+local context state line
+typeset -A opt_args
+_arguments  \
+  '(--action -a)'{-a,--action=-}':Use specified action instead of default:(open edit explore print find)' \
+  '(--open -o)'{-o,--open}'[short for: --action open]' \
+  '(--explore -x)'{-x,--explore}'[short for: --action explore]' \
+  '(--edit -e)'{-e,--edit}'[short for: --action edit]' \
+  '(--find -f)'{-f,--find}'[short for: --action find]' \
+  '(--print -p)'{-p,--print}'[short for: --action print]' \
+  '(--directory -d)'{-d,--directory=-}':Set working directory:_directories' \
+  '--hide[hides the window and activates another window]' \
+  '--maximize[maximizes the specified window]' \
+  '--minimize[minimizes the specified window and activates the next top-level window in the z-order]' \
+  '--restore[activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window]' \
+  '--show[activates the window and displays it in its current size and position]' \
+  '--showmaximized[activates the window and displays it as a maximized window]' \
+  '--showminimized[activates the window and displays it as a minimized window]' \
+  '--showminnoactive[displays the window as a minimized window. The active window remains active]' \
+  '--showna[displays the window in its current state. The active window remains active]' \
+  '--shownoactivate[displays a window in its most recent size and position. The active window remains active]' \
+  '--shownormal[activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time]' \
+  '(--help -?)'{'-?',--help}'[show this help message]' \
+  '--usage[display brief usage message]' \
+  '--version[display version information]' \
+  '--license[display licensing information]' \
+  '--reference[open MSDN reference for ShellExecute]' \
+  '*:program: _command_names -e:*::program arguments: _normal'
diff --git a/Completion/Debian/Command/_apt-move b/Completion/Debian/Command/_apt-move
new file mode 100644
index 000000000..a72378e6f
--- /dev/null
+++ b/Completion/Debian/Command/_apt-move
@@ -0,0 +1,54 @@
+#compdef apt-move
+
+local curcontext="$curcontext" state line cmds ret=1
+typeset -A opt_args
+
+_arguments -C \
+  '-a[process all packages]' \
+  '-c[specify an alternative configuration file]' \
+  '-d[override the DIST setting]' \
+  '-f[override the MAXDELETE setting]' \
+  '-q[be quiet; suppress normal output]' \
+  '-t[show what apt-move would do, but do not actually do anything]' \
+  '1: :->cmds' \
+  '*: :->args' && ret=0
+
+case $state in
+  cmds)
+    cmds=(
+      'get:update your master files from local apt'
+      'getlocal:alias of get'
+      'fsck:fix broken repositories'
+      'move:move cache files into mirror tree'
+      'movefile:move files into the repository'
+      'delete:delete obsolete packages'
+      'packages:create new local Packages files'
+      'update:alias for: get move delete packages'
+      'local:alias for: move delete packages'
+      'localupdate:alias for: getlocal move delete packages'
+      'mirror:update your local mirror from remote rsync site'
+      'sync:same as mirror, but only gets packages that you currently have installed on your system'
+      'exclude:prints a list of all packages EXCLUDED from the mirror by the .exclude file'
+      'listbin:prints lists of packages which can serve as the input to mirrorbin(mirror,sync,repo)'
+      'listsrc:same as listbin, but lists source packages'
+      'mirrorbin:same as mirror, but gets the packages specified on stdin'
+      'mirrorsrc:same as mirrorbin, but gets source packages'
+    )
+    _describe -t commands 'apt-move command' cmds && ret=0
+  ;;
+  args)
+    case $line[1] in
+      get|getlocal)
+        _directories && ret=0
+      ;;
+      movefile)
+        _files -g "*.d(sc|eb)(-.)" && ret=0
+      ;;
+      listbin)
+        _wanted lists expl list compadd mirror sync repo
+      ;;
+    esac
+  ;;
+esac
+
+return ret
diff --git a/Completion/Unix/Command/_perl b/Completion/Unix/Command/_perl
new file mode 100644
index 000000000..05b386d11
--- /dev/null
+++ b/Completion/Unix/Command/_perl
@@ -0,0 +1,63 @@
+#compdef perl
+#
+# zsh completion code for the Perl interpreter
+# Adam Spiers <adam@spiers.net>
+#
+
+_perl () {
+  _arguments -s \
+    '-0-:input record separator in octal (\0, if no argument): ' \
+    '-a[autosplit mode with -n or -p (splits $_ into @F)]' \
+    "-c[check syntax only (runs BEGIN and END blocks)]" \
+    '-d[run scripts under debugger]' \
+    '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules' \
+    '-D-:set debugging flags (argument is a bit mask or flags): ' \
+    "*-e+:one line of script. Several -e's allowed. Omit [programfile]." \
+    "-F-:split() pattern for autosplit (-a). The //'s are optional.: " \
+    '-h[list help summary]' \
+    '-i-[edit <> files in place (make backup if extension supplied)]:backup file extension: ' \
+    '*-I-[specify @INC/#include directory (may be used more than once)]:include path:_files -/' \
+    '-l-[enable line ending processing, specifies line terminator]:output record separator in octal: ' \
+    \*{-m,-M}"-[module.. executes \`use/no module...' before executing your script]:module:_perl_m_opt" \
+    "-n[assume 'while (<>) { ... }' loop around your script]" \
+    "-p[assume loop like -n but print line also like sed]" \
+    "-P[run script through C preprocessor before compilation]" \
+    "-s[enable some switch parsing for switches after script name]" \
+    "-S[look for the script using PATH environment variable]" \
+    "-T[turn on tainted checks]" \
+    "-u[dump core after parsing script]" \
+    "-U[allow unsafe operations]" \
+    "-v[print version number, patchlevel plus VERY IMPORTANT perl info]" \
+    "-V-[print perl configuration information]:configuration keys:_perl_config_vars" \
+    '-w[turn warnings on for compilation of your script. Recommended]' \
+    '-x-[strip off text before #!perl line and perhaps cd to directory]:directory to cd to:_files -/' \
+    '1:Perl script:_files -/ -g "*.(p[ml]|PL)(-.)"' \
+    '*::args: _normal' 
+}
+
+_perl_m_opt () {
+  compset -P '-'
+
+  if compset -P '*='; then
+    _message -e module-arguments 'module arguments, comma separated'
+  else
+    _perl_modules -S= -q
+  fi
+}
+
+_perl_config_vars () {
+  if (( ! $+_perl_config_vars )); then
+    _perl_config_vars=( $(perl -MConfig -e 'print join("\n", keys %Config);') )
+  fi
+
+  local add_colon='-P:'
+  compset -P '*:' && add_colon=''
+
+  local delimiter='\ '
+  (( compstate[quoting] )) && delimiter=' '
+
+  compset -P '* ' && compset -q
+  compadd "$expl[@]" $add_colon -S$delimiter -q -a _perl_config_vars
+}
+
+_perl "$@"
diff --git a/Completion/Unix/Command/_vux b/Completion/Unix/Command/_vux
new file mode 100644
index 000000000..1ed56dca6
--- /dev/null
+++ b/Completion/Unix/Command/_vux
@@ -0,0 +1,63 @@
+#compdef vux vuxctl
+
+local expl
+
+case "$service" in
+  (vux)
+
+    _arguments -s -C \
+      '-x:action:((play\:play\ music generate\:generate\ new\ scorelist
+	           merge\:merge\ new\ songs
+		   weed\:prune\ songs\ from\ scorelist
+		   ratings\:show\ statistics force\:force-rate))' \
+      '-s:file:_files' \
+      '-a:file:_files' \
+      '-z:file:_files' \
+      '-y:file:_files' \
+      '-p:file:_files' \
+      '-w:ratings:(b t)' \
+      '-W:repeats:(a c)' \
+      '-G:age bypass method:(t s n)' \
+      '-e:pattern' \
+      '-O:device:_files' \
+      '-M:minimum age val' \
+      '-S[disable saving scorelist]' \
+      '-A[disable saving agelist]' \
+      '-Z[disable saving countlist]' \
+      '-Y[disable missing log]' \
+      '-c[disable rating check]' \
+      '-d[disable rating updates on play]' \
+      '-l[disable rating updates on skip]' \
+      '-j[disable repeat check]' \
+      '-b[disable repeat updates on play]' \
+      '-k[disable repeat updates on skip]' \
+      '-n[disable player]' \
+      '-t:percent' \
+      '-T:percent' \
+      '-C:factor' \
+      '-D:factor' \
+      '-I:factor' \
+      '-U:rating' \
+      '-X:score' \
+      '-N:count' \
+      '-f:rating' \
+      '-J[accelerate decreases]' \
+      '-K[accelerate increases]' \
+      '-u[check age before rating]' \
+      '-R[show ratings after processing]' \
+      '-V[verbose file manipulation]' \
+      '-v[show version and exit]' \
+      '-F[skip songs with -n and -xf]' \
+      '-q[minimize vux output]' \
+      '-P[always play new songs]' \
+      '-g[print stats in xgraph format]' \
+      '-h[show summary of options]'
+  ;;
+
+  (vuxctl)
+
+    _wanted vuxcmd expl 'vux control command' \
+      compadd start clean double half up down next previous forward \
+	      replay pause resume stop reload save history help
+  ;;
+esac