blob: 1dd351360c143b9ead0b210c052f5e99dc90a5f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#autoload
local expl list names disp sep
list=( $(lsvg -l $(lsvg)|sed -e '2d'|awk '/[^:]* / {if ( $7 != "N/A" ) print $1 ":" $7; else print $1}' ) )
names=(${list%%:*})
if zstyle -T ":completion:${curcontext}:" verbose; then
zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--
zformat -a list " $sep " $list
disp=(-d list)
else
disp=()
fi
_wanted logicalvolumes expl 'logical volumes' \
compadd "$disp[@]" "$@" - "$names[@]"
|