about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Debian/Command/_uscan17
-rw-r--r--Completion/Linux/Command/_acpi18
-rw-r--r--Completion/Linux/Command/_tune2fs23
-rw-r--r--Completion/Unix/Command/_fortune15
-rw-r--r--Completion/Unix/Command/_fuser67
-rw-r--r--Completion/Unix/Command/_groff45
-rw-r--r--Completion/Unix/Command/_knock9
-rw-r--r--Completion/Unix/Command/_showmount10
8 files changed, 204 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_uscan b/Completion/Debian/Command/_uscan
new file mode 100644
index 000000000..699d5c34c
--- /dev/null
+++ b/Completion/Debian/Command/_uscan
@@ -0,0 +1,17 @@
+#compdef uscan
+
+_arguments \
+  '(--report --no-download --download)'{--report,--no-download}'[report but do not download]' \
+  '--debug[dump downloaded pages to stdout]' \
+  '(--report --no-download --download)--download[report and download]' \
+  '(--pasv --no-pasv)--pasv[force passive mode for ftp]' \
+  '(--pasv --no-pasv)--no-pasv[do not use passive mode for ftp]' \
+  '(--symlink --no-symlink)--symlink[make orig.tar.gz symlinks]' \
+  '(--symlink --no-symlink)--no-symlink[do not make orig.tar.gz symlinks]' \
+  '(--verbose --no-verbose)--verbose[give verbose output]' \
+  '(--verbose --no-verbose)--no-verbose[do not give verbose output]' \
+  '--check-dirname-level:level:((0\:never\ check\ the\ directory\ name 1\:only\ check\ directory\ name\ if\ we\ had\ to\ change\ directory 2\:always\ check\ the\ directory\ name))' \
+  '--check-dirname-regex:perl regex' \
+  '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read any configuration files]' \
+  '--help[display help information]' \
+  '--version[display version information]'
diff --git a/Completion/Linux/Command/_acpi b/Completion/Linux/Command/_acpi
new file mode 100644
index 000000000..850687506
--- /dev/null
+++ b/Completion/Linux/Command/_acpi
@@ -0,0 +1,18 @@
+#compdef acpi
+
+_arguments -s \
+    '(-b --battery)'{-b,--battery}'[battery information]' \
+    '(-B --without-battery)'{-B,--without-battery}'[suppress battery information]' \
+    '(-t --thermal)'{-t,--thermal}'[thermal information]' \
+    '(-T --without-thermal)'{-T,--without-thermal}'[suppress thermal information]' \
+    '(-a --ac-adapter)'{-a,--ac-adapter}'[ac adapter information]' \
+    '(-A --without-ac-adapter)'{-A,--without-ac-adapter}'[suppress ac-adapter information]' \
+    '(-V --everything)'{-V,--everything}'[show every device, overrides above options]' \
+    '(-s --show-empty)'{-s,--show-empty}'[show non-operational devices]' \
+    '(-S --hide-empty)'{-S,--hide-empty}'[hide non-operational devices]' \
+    '(-c --celsius -f --fahrenheit -k --kelvin)'{-c,--celsius}'[use Celsius as the temperature scale]' \
+    '(-c --celsius -f --fahrenheit -k --kelvin)'{-f,--fahrenheit}'[use Fahrenheit as the temperature scale]' \
+    '(-c --celsius -f --fahrenheit -k --kelvin)'{-k,--kelvin}'[use Kelvin as the temperature scale]' \
+    '(-d --directory)'{-d,--directory}'[path to ACPI info (/proc/acpi)]:directory:_files -/' \
+    '(-h --help)'{-h,--help}'[display this help and exit]' \
+    '(-v --version)'{-v,--version}'[output version information and exit]'
diff --git a/Completion/Linux/Command/_tune2fs b/Completion/Linux/Command/_tune2fs
new file mode 100644
index 000000000..73ce2dd12
--- /dev/null
+++ b/Completion/Linux/Command/_tune2fs
@@ -0,0 +1,23 @@
+#compdef tune2fs
+
+_arguments \
+  '-c[set max mounts between checks]:number of mounts' \
+  '-C[set mount count]:number of mounts' \
+  '-e[set error behavior]:error behavior:(continue remount-ro panic)' \
+  '-f[force tune2fs to complete even in the face of errors]' \
+  '-g[set the group which can use reserved filesystem blocks]:group:_groups' \
+  '-i[interval between checks]:duration' \
+  '-j[add an ext3 journal to the filesystem]' \
+  '-J[journal options]: :_values -s , option "size[specify journal size]\:size" "device[use external journal]\:block device\:_files"' \
+  '-l[list the contents of the filesystem superblock]' \
+  '-L[set the volume label of the filesystem]:label' \
+  '-m[set the percentage of reserved filesystem blocks]:percentage' \
+  '-M[set the last-mounted directory for the filesystem]:directory:_files -/' \
+  '-o[mount options]:options:_values -s , debug bsdgroups user_xattr acl uid16 journal_data journal_data_ordered journal_data_writeback' \
+  '-O[set or clear filesystem features]: :_values -s , feature dir_index filetype has_journal sparse_super' \
+  '-r[set the number of reserved filesystem blocks]:number' \
+  '-s[set sparse super feature]:state:((0\:off 1\:on))' \
+  '-T[set time last checked]:time specifier' \
+  '-u[set user who can use reserved filesystem blocks]:user:_users' \
+  '-U[set filesystem UUID]:UUID or special:(clear random time)' \
+  ':device:_files'
diff --git a/Completion/Unix/Command/_fortune b/Completion/Unix/Command/_fortune
new file mode 100644
index 000000000..c0eca56a3
--- /dev/null
+++ b/Completion/Unix/Command/_fortune
@@ -0,0 +1,15 @@
+#compdef fortune
+
+_arguments \
+  '-a[choose from all lists of maxims, both offensive and not]' \
+  '-c[show the cookie file from which the fortune came]' \
+  '-e[consider all fortune files to be of equal size]' \
+  '-f[print out the list of files which would be searched]' \
+  '-l[long dictums only]' \
+  '-m[print all matches to regex]:BRE' \
+  '-n[set longest length to be short]:length' \
+  '-o[choose only from potentially offensive aphorisms]' \
+  '-s[short apothegms only]' \
+  '-i[ignore case for -m patterns]' \
+  '-w[wait before termination for a time based on msg length]' \
+  '*:databases'
diff --git a/Completion/Unix/Command/_fuser b/Completion/Unix/Command/_fuser
new file mode 100644
index 000000000..6c291473f
--- /dev/null
+++ b/Completion/Unix/Command/_fuser
@@ -0,0 +1,67 @@
+#compdef fuser
+
+local -a args arg1
+typeset -A opt_args
+
+if _pick_variant -c $words[1] psmisc=psmisc unix -V; then
+
+  (( $+functions[_fuser_services] )) ||
+  _fuser_services() {
+    local expl suf ret=1
+
+    [[ $opt_args[-n] = ??p || $EUID = 0 ]] || return
+
+    if compset -P '*/'; then
+      _wanted protocols expl protocol compadd tcp udp
+    elif compset -P '*,*,'; then
+      compset -S '/*' || [[ -n $opt_args[-n] ]] || suf=( -qS / )
+      _ports $suf && ret=0
+    elif compset -P '*,'; then
+      compset -S ',*' || suf=( -S ,  -r "/ \t\n\-" )
+      _hosts $suf && ret=0
+    else
+      compset -S ',*' || suf=( -S ${${opt_args[-n]/?*/,}:-/} -r "/, \t\n\-" )
+      _ports $suf && ret=0
+    fi
+      
+    return ret
+  }
+
+  _arguments \
+    '(-s)-a[show all files specified on the command line]' \
+    {-c,-m}'[list all processes accessing files on the filesystem specified by name]' \
+    '-k[kill processes accessing the file]' \
+    '-i[ask for confirmation before killing]' \
+    '-l[list all known signal names]' \
+    '-n[select name space]:namespace:(file udp tcp)' \
+    '(-a)-s[silent operation]' \
+    '-signal[send alternate signal with -k]:signal:_signals' \
+    '-u[append the user name of the process owner to each PID]' \
+    '-v[verbose mode]' \
+    '-V[display version information]' \
+    '-4[search only for IPv4 sockets]' \
+    '-6[search only for IPv6 sockets]' \
+    '*:name: _alternative "files:file:_files" "services:service:_fuser_services"'
+
+else
+  case $OSTYPE in
+    solaris2.9 )
+      args=(
+	'-n[list only processes with non-blocking mandatory locks]' 
+	'-s[send alternate signal with -k]:signal:_signals' 
+      )
+    ;;
+    sysv4 )
+      (( $+words[(r)-k] )) && arg1=( ':name: _alternative signals\:signal\:_signals\ -p files:file:_files' )
+    ;;
+  esac
+
+  _arguments \
+    '(-f)-c[list all processes accessing files on the filesystem specified by name]' \
+    '(-c)-f[list all processes accessing named files]' \
+    '-k[kill processes accessing the file]' \
+    '-u[append the user name of the process owner to each PID]' \
+    $args \
+    $arg1 \
+    '*:file:_files'
+fi
diff --git a/Completion/Unix/Command/_groff b/Completion/Unix/Command/_groff
new file mode 100644
index 000000000..4f3b8c617
--- /dev/null
+++ b/Completion/Unix/Command/_groff
@@ -0,0 +1,45 @@
+#compdef groff
+
+local _troff_options
+
+_troff_options=('-a[ascii approximation of output]'
+       '-b[backtrace on error or warning]'
+       '-c[disable color output]'
+       '-C[enable compatibility mode]'
+       '*-d[define string]:definition:'
+       '-E[disable troff error messages]'
+       '-f[set default font family]:font family:'
+       '-F[set path for font DESC files]:path:'
+       '-i[process standard input after specified input files]'
+       '-m[include macro file]:name:(man mandoc mdoc me mm ms www)'
+       '-M[dir path for macro files]:path:'
+       '-n[number for the first page]:number:'
+       '-o[output only pages in list]:list:'
+       '*-r[set number register]:setting:'
+       '*-w[enable warning name]:name:'
+       '*-W[disable warning name]:name')
+
+_arguments \
+	'-e[preprocess with eqn]' \
+        '-g[preprocess with grn]' \
+        '-G[preprocess with grap]' \
+	'(-h --help)'{-h,--help}'[help]' \
+	'-I[add search dir for soelim]:directory:_files -/' \
+	'-l[send output to spooler program for printing]' \
+	'*-L[pass arg to spooler program]:spooler argument:' \
+	'-N[do not allow newlines within eqn delimeters]' \
+	'-p[preprocess with pic]' \
+	'*-P[pass option to postprocessor]:option:' \
+        '-R[preprocess with refer]' \
+        '-s[preprocess with soelim]' \
+        '(-U)-S[safer mode]' \
+        '-t[preprocess with tbl]' \
+        '-T[set output device]:device:((ascii\:ASCII\ character\ set cp1047\:EBDIC\ code\ page\ IBM\ cp1047 nippon\:Japanese-EUC\ character\ set dvi\:TeX\ DVI\ format html\:HTML\ output ascii8\:8-bit\ clean latin1\:ISO\ 8859-1 lbp\:Canon\ CAPSL\ printers lj4\:HP\ LaserJet4-compatible\ printers ps\:PostScript\ output utf8\:Unicode\ \(ISO\ 10646\)\ character\ set X75\:75dpi\ X\ Window\ System\ output X75-12\:75dpi\ X\ Window\ System\ output\ \(12pt\) X100\:100dpi\ X\ Window\ System\ output X100-12\:100dpi\ X\ Window\ System\ output\ \(12pt\)))' \
+        '(-S)-U[unsafe mode]' \
+	'(-v --version)'{-v,--version}'[version]' \
+	'-V[output the pipeline that would be run but do not execute]' \
+	'-X[use gxditview instead of the usual postprocessor]' \
+	'-z[suppress output generated by troff]' \
+	'-Z[do not postprocess the output of troff]' \
+	"$_troff_options[@]" \
+	':file:_files'
diff --git a/Completion/Unix/Command/_knock b/Completion/Unix/Command/_knock
new file mode 100644
index 000000000..3cf83e3c1
--- /dev/null
+++ b/Completion/Unix/Command/_knock
@@ -0,0 +1,9 @@
+#compdef knock
+
+_arguments \
+	'(-u --udp)'{-u,--udp}'[UDP mode]' \
+	'(-v --verbose)'{-v,--verbose}'[verbose]' \
+	'(-V --version -h --help -u --udp -v --verbose)'{-V,--version}'[display version]' \
+	'(-h --help -u --udp -v --verbose -V --version)'{-h,--help}'[help]' \
+	'1:host:_hosts' \
+	'*:port:_ports'
diff --git a/Completion/Unix/Command/_showmount b/Completion/Unix/Command/_showmount
new file mode 100644
index 000000000..913091198
--- /dev/null
+++ b/Completion/Unix/Command/_showmount
@@ -0,0 +1,10 @@
+#compdef showmount
+
+_arguments \
+	'(-a --all)'{-a,--all}'[list both hostname and mounted dir in host:dir format]' \
+	'(-d --directories)'{-d,--directories}'[list only the directories mounted by some client]' \
+	'(-e --exports)'{-e,--exports}'[show server export list]' \
+	'(-h --help)'{-h,--help}'[help]' \
+	'(-v --version)'{-v,--version}'[version]' \
+	'--no-headers[suppress descriptive headers from output]' \
+	':host:_hosts'