From 0ba8ae87eac21281e0b17eb9cbb523d133067a4a Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 8 Jun 2005 12:45:24 +0000 Subject: 21315: make completion functions give precendence to descriptions passed as parameters and cleanup descriptons in calling functions --- Completion/AIX/Type/_logical_volumes | 2 +- Completion/AIX/Type/_object_classes | 2 +- Completion/AIX/Type/_physical_volumes | 2 +- Completion/AIX/Type/_volume_groups | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion/AIX/Type') diff --git a/Completion/AIX/Type/_logical_volumes b/Completion/AIX/Type/_logical_volumes index 1dd351360..bbfa09238 100644 --- a/Completion/AIX/Type/_logical_volumes +++ b/Completion/AIX/Type/_logical_volumes @@ -11,5 +11,5 @@ if zstyle -T ":completion:${curcontext}:" verbose; then else disp=() fi -_wanted logicalvolumes expl 'logical volumes' \ +_wanted logicalvolumes expl 'logical volume' \ compadd "$disp[@]" "$@" - "$names[@]" diff --git a/Completion/AIX/Type/_object_classes b/Completion/AIX/Type/_object_classes index 6122dcdf4..a0d669ca3 100644 --- a/Completion/AIX/Type/_object_classes +++ b/Completion/AIX/Type/_object_classes @@ -3,4 +3,4 @@ local expl _wanted objectclasses expl 'object class' \ - _files -W ${ODMDIR:-/etc/objrepos} -g '^*.vc(-.)' + _files -W ${ODMDIR:-/etc/objrepos} -g '^*.vc(-.)' "$@" - diff --git a/Completion/AIX/Type/_physical_volumes b/Completion/AIX/Type/_physical_volumes index b53054823..fd31edd09 100644 --- a/Completion/AIX/Type/_physical_volumes +++ b/Completion/AIX/Type/_physical_volumes @@ -3,4 +3,4 @@ local expl _wanted physicalvolumes expl 'physical volume' \ - compadd - $(lsdev -C -c disk -S a -F name) + compadd "$@" - $(lsdev -C -c disk -S a -F name) diff --git a/Completion/AIX/Type/_volume_groups b/Completion/AIX/Type/_volume_groups index dc509f6dc..8b8bebfa6 100644 --- a/Completion/AIX/Type/_volume_groups +++ b/Completion/AIX/Type/_volume_groups @@ -2,4 +2,4 @@ local expl -_wanted physicalvolumes expl 'physical volume' compadd - $(lsvg) +_wanted volumegroups expl 'volume group' compadd "$@" - $(lsvg) -- cgit 1.4.1