zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: completion for loadkeys
Date: Wed, 2 May 2001 12:02:46 -0400	[thread overview]
Message-ID: <20010502120246.A27456@dman.com> (raw)
In-Reply-To: <20010502155253.96565.qmail@web9305.mail.yahoo.com>; from okiddle@yahoo.co.uk on Wed, May 02, 2001 at 04:52:53PM +0100

> > +	':keymap:_files -W /usr/share/keymaps'
> 
> Could we maybe have the usual _is_gnu tests in this? I've only got
> access to Solaris today and there, loadkeys takes only one parameter -
> a file name - so default completion would be best. /usr/share/keymaps
> doesn't even exist on Solaris. 

> If you want, leave it to me and I'll do the change but it may be a few
> days before I get a chance to.

How's this?


Index: Completion/Unix/Command/_loadkeys
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_loadkeys,v
retrieving revision 1.1
diff -u -r1.1 _loadkeys
--- Completion/Unix/Command/_loadkeys	2001/05/02 15:02:35	1.1
+++ Completion/Unix/Command/_loadkeys	2001/05/02 16:01:50
@@ -1,5 +1,8 @@
 #compdef loadkeys
 
+if [[ $OSTYPE == linux* ]]
+then
+
 _arguments \
 	'(--clearcompose)-c[clearcompose]' \
 	'(-c)--clearcompose' \
@@ -14,3 +17,10 @@
 	'(--verbose)-v[verbose]' \
 	'(-v)--verbose' \
 	':keymap:_files -W /usr/share/keymaps'
+
+elif [[ $OSTYPE == solaris* ]]
+then
+
+	_files -W /usr/share/lib/keytables
+
+fi


  reply	other threads:[~2001-05-02 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-02 15:00 Clint Adams
2001-05-02 15:52 ` Oliver Kiddle
2001-05-02 16:02   ` Clint Adams [this message]
2001-05-02 16:23     ` Oliver Kiddle
2001-05-02 17:45       ` Clint Adams
2001-05-03 13:01         ` Oliver Kiddle

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=20010502120246.A27456@dman.com \
    --to=clint@zsh.org \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.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).