about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-08-27 16:55:59 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-08-27 16:55:59 +0000
commitb8d2c8e6de327109bf9b50669704e027232253ed (patch)
treece9e3a0fad8a4e7d703ca913d0359a9b68e7cfea
parent989faba5887f1961b31a2e16b42261ee48355042 (diff)
downloadzsh-b8d2c8e6de327109bf9b50669704e027232253ed.tar.gz
zsh-b8d2c8e6de327109bf9b50669704e027232253ed.tar.xz
zsh-b8d2c8e6de327109bf9b50669704e027232253ed.zip
new AIX specific completion function (12708)
-rw-r--r--ChangeLog4
-rw-r--r--Completion/AIX/_logical_volumes14
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 998feb80b..784b82f66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/Completion/AIX/_logical_volumes b/Completion/AIX/_logical_volumes
new file mode 100644
index 000000000..53949fab2
--- /dev/null
+++ b/Completion/AIX/_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[@]"