1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

new AIX specific completion function (12708)

This commit is contained in:
Oliver Kiddle 2000-08-27 16:55:59 +00:00
parent 989faba588
commit b8d2c8e6de
2 changed files with 18 additions and 0 deletions

@ -1,3 +1,7 @@
2000-08-27 Oliver Kiddle <opk@zsh.org>
* 12708: Completion/AIX/_logical_volumes: new AIX completion function
2000-08-23 Sven Wischnowsky <wischnow@zsh.org>
* 12692: Alexandre: 12691; 12692: Completion/User/_gv,

@ -0,0 +1,14 @@
#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[@]"