Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: completion for loadkeys



> > +	':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