zsh-workers
 help / color / mirror / code / Atom feed
42c0d33c0a5b0f4955406c587ae7e387c1f3d4c0 blob 713 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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 -o name' \
  '*: :->parameters'

if [[ $state == parameters ]]; then
  _values -w -S ' ' 'jail parameter' ${${${(f)"$(sysctl -N security.jail.param)"}%.#}##security.jail.param.#}
fi
debug log:

solving 42c0d33 ...
found 42c0d33 in https://inbox.vuxu.org/zsh-workers/55503F0A.9060303@gmx.com/
found a6f8a7e in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 a6f8a7eb68db1c8fb66b9e857e3a8dadba7b7301	Completion/BSD/Command/_jls

applying [1/1] https://inbox.vuxu.org/zsh-workers/55503F0A.9060303@gmx.com/
diff --git a/Completion/BSD/Command/_jls b/Completion/BSD/Command/_jls
index a6f8a7e..42c0d33 100644

Checking patch Completion/BSD/Command/_jls...
Applied patch Completion/BSD/Command/_jls cleanly.

index at:
100644 42c0d33c0a5b0f4955406c587ae7e387c1f3d4c0	Completion/BSD/Command/_jls

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).