about summary refs log tree commit diff
path: root/Completion/Solaris/Type/_zones
blob: 92064d2b8b91501c0cf6bf63e3d7fdabb1fa41f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#autoload

local -a type typearg expl

zparseopts -D -E -a type t+:

[[ -n $type[(r)c] ]] && typearg=-c
[[ -n $type[(r)i] ]] && typearg=-i

_description zones expl zone
compadd "$@" "$expl[@]" - ${="$(_call_program zones /usr/sbin/zoneadm list $typearg)"}