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

Re: backward kill



* Peter Stephenson <pws@xxxxxxx> [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.



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