zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: another AIX specific completion function
Date: Sun, 27 Aug 2000 16:50:31 +0100	[thread overview]
Message-ID: <39A938C7.B39497EE@u.genie.co.uk> (raw)

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[@]"


                 reply	other threads:[~2000-08-27 16:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39A938C7.B39497EE@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).