about summary refs log tree commit diff
path: root/Completion/BSD/Command/_jls
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2015-05-06 22:36:48 -0400
committerPeter Stephenson <pws@zsh.org>2015-05-07 09:47:48 +0100
commit13c6d38e4b989a7185a161d3978dd5cfd3da143f (patch)
tree9be0b09768443bd50bb6345944d9f01c766b909c /Completion/BSD/Command/_jls
parentaa34d2f1652f31940534864c1a8ef5404c004638 (diff)
downloadzsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.tar.gz
zsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.tar.xz
zsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.zip
35052: new BSD completions
Diffstat (limited to 'Completion/BSD/Command/_jls')
-rw-r--r--Completion/BSD/Command/_jls19
1 files changed, 19 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_jls b/Completion/BSD/Command/_jls
new file mode 100644
index 000000000..a6f8a7eb6
--- /dev/null
+++ b/Completion/BSD/Command/_jls
@@ -0,0 +1,19 @@
+#compdef jls
+
+local curcontext=$curcontext state state_descr line
+typeset -A opt_args
+
+_arguments -C -s -w -A '-*' : \
+  '-d[include diying jails]' \
+  '-h[print header line]' \
+  "-N[print jail's name instead of numeric ID]" \
+  '-n[print parameters in ``name=value'\'\'' format]' \
+  '-q[quote parameter value when it contains whitespace, quotes or empty string]' \
+  '-s[print parameters suitable for passing to jail(8)]' \
+  '-v[print a multiple-line summary per jail]' \
+  '-j[the jid or name of the jail to list]:jail:_jails' \
+  '*: :->parameters'
+
+if [[ $state == parameters ]]; then
+  _values -w -S ' ' 'jail parameter' ${${${(f)"$(sysctl -N security.jail.param)"}%.#}##security.jail.param.#}
+fi