mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
15 lines
379 B
Plaintext
15 lines
379 B
Plaintext
#autoload
|
|
|
|
local expl list names disp
|
|
|
|
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
|
|
zformat -a list ' -- ' $list
|
|
disp=(-d list)
|
|
else
|
|
disp=()
|
|
fi
|
|
_wanted logicalvolumes expl 'logical volumes' \
|
|
compadd "$disp[@]" "$@" - "$names[@]"
|