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

local -a type typearg
local zonelist

zparseopts -D -E -a type t+:

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

zonelist=( ${="$(zoneadm list $typearg)"} )

compadd "$@" - $zonelist