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

Re: backward kill

Jesper Holmberg wrote:
> Hi all,
> I am using the emacs key bindings. If I've written the following:
> /path/to/some/file
> 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).

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070

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 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author