From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22862 invoked from network); 20 May 2006 20:03:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 May 2006 20:03:03 -0000 Received: (qmail 70954 invoked from network); 20 May 2006 20:02:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 May 2006 20:02:57 -0000 Received: (qmail 7430 invoked by alias); 20 May 2006 20:02:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10286 Received: (qmail 7418 invoked from network); 20 May 2006 20:02:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 May 2006 20:02:49 -0000 Received: (qmail 69779 invoked from network); 20 May 2006 20:02:48 -0000 Received: from ms-1.rz.rwth-aachen.de (HELO ms-dienst.rz.rwth-aachen.de) (134.130.3.130) by a.mx.sunsite.dk with SMTP; 20 May 2006 20:02:47 -0000 Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IZK0063FYCJX5@ms-dienst.rz.rwth-aachen.de> for zsh-users@sunsite.dk; Sat, 20 May 2006 22:02:43 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Sat, 20 May 2006 22:02:42 +0200 (MEST) Received: from fsst.voodoo.lan (u-6-102.vpn.RWTH-Aachen.DE [137.226.102.102]) by relay.rwth-aachen.de (8.13.6/8.13.3/1) with ESMTP id k4KK2guG011259 for ; Sat, 20 May 2006 22:02:42 +0200 (MEST) Received: from hawk by fsst.voodoo.lan with local (Exim 4.62) (envelope-from ) id 1FhXeo-0002JT-G4 for zsh-users@sunsite.dk; Sat, 20 May 2006 22:02:38 +0200 Date: Sat, 20 May 2006 22:02:38 +0200 From: Frank Terbeck Subject: Re: making zsh beep In-reply-to: <20060520193042.GA922@hhs48.com> To: zsh list Mail-followup-to: zsh list Message-id: <20060520200238.GD2793@fsst.voodoo.lan> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline Operating-System: Linux 2.6.16.16 i686 User-Agent: Mutt/1.5.11+cvs20060403 References: <20060520193042.GA922@hhs48.com> Charles Hallenbeck : > I have installed zsh as a login shell and have done a bunch of > configuring, but there is one feature I would like it to do that bash > used to do, and cannot seem to locate any info on it. > > In bash, backspacing on an empty command line produced a beep. How can I > make zsh do that? > > I have setopt beep in a startup file, and ambiguous filename expansions > cause a beep. But backspacing on an empty command line does not. What > have I overlooked? Hi Charles, If you'd like the line editor to beep, you'll have to add a widget that does that. I don't think that there's an option for that. Try: backward-delete-char-beep() { if (( CURSOR == 0 )) ; then zle beep ; fi ; zle backward-delete-char } zle -N backward-delete-char-beep bindkey "^?" backward-delete-char-beep That should do the trick. Regards, Frank