about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:17:27 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:17:27 +0000
commit045723fd069be86877b0016f0092ba4dcb4c9825 (patch)
tree5e8121fd4cd61f0708607f31ccb11eebdffd13a4
parent837ebb9affe3d9cfc2757b5dfa78aa435dbc18c1 (diff)
downloadzsh-045723fd069be86877b0016f0092ba4dcb4c9825.tar.gz
zsh-045723fd069be86877b0016f0092ba4dcb4c9825.tar.xz
zsh-045723fd069be86877b0016f0092ba4dcb4c9825.zip
moved from Completion/AIX/_logical_volumes
-rw-r--r--Completion/AIX/Type/_logical_volumes14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/AIX/Type/_logical_volumes b/Completion/AIX/Type/_logical_volumes
new file mode 100644
index 000000000..53949fab2
--- /dev/null
+++ b/Completion/AIX/Type/_logical_volumes
@@ -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[@]"