From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11471 invoked from network); 15 Nov 2001 15:35:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Nov 2001 15:35:25 -0000 Received: (qmail 14613 invoked by alias); 15 Nov 2001 15:35:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4472 Received: (qmail 14597 invoked from network); 15 Nov 2001 15:35:07 -0000 Date: Thu, 15 Nov 2001 16:34:40 +0100 From: Mads Martin Joergensen To: Peter Stephenson Cc: Zsh users list Subject: Re: backward kill Message-ID: <20011115163440.N14280@staudinger.suse.de> References: <20011115160509.A1095@strindberg.maisel.enst-bretagne.fr> <15066.1005837719@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15066.1005837719@csr.com> * Peter Stephenson [Nov 15. 2001 16:22]: > > with the prompt at the end, and I press alt-backspace, the whole path is > > wiped out. I would like it to just remove backwards to the last (first > > from the end) slash. How could I accomplish this? > > Use the bash-backward-kill-word widget, supplied with 4.0 and 4.1. (The > other bash-* variants are only supplied with 4.1). Cannot seem to get that working, and the manpage mentions nothing about it? (mmj@staudinger) ~> echo $ZSH_VERSION 4.0.4 (mmj@staudinger) ~> echo $ZSHEDIT emacs (mmj@staudinger) ~> cat .zshrc | grep bash bindkey "^[^[[D" bash-backward-kill-word And when I hit ESC left-arrow: No such widget `bash-backward-kill-word' -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.