about summary refs log tree commit diff
path: root/Completion/AIX
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:18:23 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:18:23 +0000
commitc83d16f8ee5721de1da3e8449c30a31ca1372d28 (patch)
treeaf5c704f6d02ad081058ff0428abedbe180dbabf /Completion/AIX
parente1708022d206dfe183bbce3d03c7e5e02abc3a59 (diff)
downloadzsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.gz
zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.xz
zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.zip
another fix for 15477 (separator strings); add list-separator style (15484)
Diffstat (limited to 'Completion/AIX')
-rw-r--r--Completion/AIX/Command/_lscfg5
-rw-r--r--Completion/AIX/Type/_logical_volumes7
2 files changed, 7 insertions, 5 deletions
diff --git a/Completion/AIX/Command/_lscfg b/Completion/AIX/Command/_lscfg
index 4667a0bd7..f9e8f15cd 100644
--- a/Completion/AIX/Command/_lscfg
+++ b/Completion/AIX/Command/_lscfg
@@ -1,6 +1,6 @@
 #compdef lscfg
 
-local state line expl curcontext="$curcontext" disp list devs
+local state line expl curcontext="$curcontext" disp list devs sep
 
 _arguments -C -s \
   '-l[display device information for named device]:device:->device' \
@@ -9,7 +9,8 @@ _arguments -C -s \
 if [[ "$state" = device ]]; then
   devs=( ${${${${(f)"$(lscfg)"}[6,-1]:# *}##??}/ ##[^ ]# #/:} )
   if zstyle -T ":completion:${curcontext}:devices" verbose; then
-    zformat -a list ' -- ' "$devs[@]"
+    zstyle -s ":completion:${curcontext}:devices" list-separator sep || sep=--
+    zformat -a list " $sep " "$devs[@]"
     disp=(-ld list)
   else
     disp=()
diff --git a/Completion/AIX/Type/_logical_volumes b/Completion/AIX/Type/_logical_volumes
index 53949fab2..1dd351360 100644
--- a/Completion/AIX/Type/_logical_volumes
+++ b/Completion/AIX/Type/_logical_volumes
@@ -1,11 +1,12 @@
 #autoload
 
-local expl list names disp
+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
-  zformat -a list ' -- ' $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=()