zsh-workers
 help / color / mirror / code / Atom feed
5fb8bde654033122032c9ff48454315df3daeb08 blob 739 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#autoload

# Options:
#
# -0        include jid 0 as a match for the host system
# -o param  jail parameter to complete instead of jid -
#              e.g. name, path, ip4.addr, host.hostname

local addhost host param desc=1
local -a args expl
zparseopts -D -K -E 0=addhost o:=param
param=${param[2]:-jid}

jails=( ${${(f)"$(_call_program jails jls $param name)"}/ /:} )
case $param in
  jid) host=0 ;;
  name)
    host=
    desc=0
  ;;
  path)
    host=/
    args=( -M 'r:|/=* r:|=*' )
  ;;
  ip4.addr) args=( -M 'r:|.=* r:|=*' ) ;;
esac
[[ -n $addhost && -n $host ]] && jails+=( "$host:$HOST" )

if (( desc )); then
  _describe -t jails jail jails "$@" "$args[@]"
else
  _wanted jails expl jail compadd "$@" "$args[@]" - ${jails%:*}
fi
debug log:

solving 5fb8bde ...
found 5fb8bde in https://inbox.vuxu.org/zsh-workers/4262.1430949497@quattro/
found 36bffec in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 36bffeceb1d4a83d89b171af991077a0d3d8c55f	Completion/BSD/Type/_jails

applying [1/1] https://inbox.vuxu.org/zsh-workers/4262.1430949497@quattro/
diff --git a/Completion/BSD/Type/_jails b/Completion/BSD/Type/_jails
index 36bffec..5fb8bde 100644

Checking patch Completion/BSD/Type/_jails...
Applied patch Completion/BSD/Type/_jails cleanly.

index at:
100644 5fb8bde654033122032c9ff48454315df3daeb08	Completion/BSD/Type/_jails

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).