Current File : //usr/share/zsh/5.0.2/functions/_zones
#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