From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20921 invoked from network); 17 Mar 2003 10:31:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Mar 2003 10:31:52 -0000 Received: (qmail 20599 invoked by alias); 17 Mar 2003 10:31:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5969 Received: (qmail 20588 invoked from network); 17 Mar 2003 10:31:13 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 17 Mar 2003 10:31:13 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 17 Mar 2003 10:31:13 -0000 Received: from exchange01.csr.com (unverified) by (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Mon, 17 Mar 2003 10:38:58 +0000 Received: from csr.com (tinky-winky.csr.com [192.168.144.127]) by exchange01.csr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G0TVJC26; Mon, 17 Mar 2003 10:30:48 -0000 To: zsh-users@sunsite.dk Subject: Re: menu selection and enter key In-reply-to: ""Virginia Mann""'s message of "Fri, 14 Mar 2003 20:45:02 GMT." Date: Mon, 17 Mar 2003 10:31:05 +0000 Message-ID: <26765.1047897065@csr.com> From: Peter Stephenson "Virginia Mann" wrote: > When I use the line (thanks Oliver and Andrey!) > > bindkey -M menuselect '^M' .accept-line > > It causes my enter key to do what I want it to do (execute immediately > instead of making me hit twice), so I put it in my .zshrc. > > But when I first start up a new zsh, and .zshrc is sourced the first time, > this line fails with the error: "no such keymap `menuselect'". If you are using the new completion system with the styles set for menu selection, move this line after the call to compinit, since the completion system will load the libraries for you. Otherwise, put zmodload -i zsh/complist just before it. The -i stops it complaining if you re-source .zshrc. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************