Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for loadkeys
- X-seq: zsh-workers 14208
- From: Clint Adams <clint@xxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: PATCH: completion for loadkeys
- Date: Wed, 2 May 2001 12:02:46 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20010502155253.96565.qmail@xxxxxxxxxxxxxxxxxxxxxx>; from okiddle@xxxxxxxxxxx on Wed, May 02, 2001 at 04:52:53PM +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010502110033.A25252@xxxxxxxx> <20010502155253.96565.qmail@xxxxxxxxxxxxxxxxxxxxxx>
> > + ':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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author