HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u115237990 (7145895)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //kunden/usr/share/zsh/functions/Completion/Solaris/_be_name
#autoload

local -a type be_names expl

zparseopts -D -E -a type t+:

be_names=( ${${(f)"$(_call_program boot-environs beadm list -H)"}%%;*} )

[[ -n $type[(r)all] ]] &&
  be_names+=( ${${${(f)"$(_call_program boot-environs beadm list -sH)"}#*;}%%;*} )

_description boot-environs expl 'boot environment'
compadd "$@" "$expl[@]" -a be_names