HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Completion/BSD/_jls
#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