zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: another AIX specific completion function
@ 2000-08-27 15:50 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2000-08-27 15:50 UTC (permalink / raw)
  To: Zsh workers

I just realised that I had never added the AIX specific
_logical_volumes completion despite using it in _lslv so here it is.

I've now finished on my job where I used AIX so I won't be fixing any
more of the AIX specific problems. It's actually a little while now
since I've had to fix the dependencies for AIX so I suspect that Andrej
has been able to pick up missing mod_exports in the process of doing
all his good work on dynamic loading in cygwin. If not, it's fairly
easy to work out what to do from the error messages given by the AIX
C compiler if anyone comes up against them.

I'll actually be away altogether from next week because I'm taking
several months off to go travelling. I'll have a little bit of time
this week so if there was any little things I said I'd do, please
remind me.

Oliver

Index: Completion/AIX/_logical_volumes
===================================================================
RCS file: _logical_volumes
diff -N _logical_volumes
--- /dev/null   Tue May  5 13:32:27 1998
+++ _logical_volumes    Sun Aug 27 09:48:39 2000
@@ -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[@]"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-27 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-27 15:50 PATCH: another AIX specific completion function Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).