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:
parent
989faba588
commit
b8d2c8e6de
@ -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,
|
||||
|
14
Completion/AIX/_logical_volumes
Normal file
14
Completion/AIX/_logical_volumes
Normal file
@ -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[@]"
|
Loading…
Reference in New Issue
Block a user