From fff04ca7d720585b70fd52fe820dc08a399e46c0 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 8 Dec 2010 12:59:54 +0100 Subject: [PATCH] Adding a kill to slash binding to alt-backspace As requested by mika, mrud and kafux. I'm binding the widget to "M-C-h" and "M-C-?" because those are common codes send by the backspace key in various terminals (and sometimes terminfo lies about it). --- etc/zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a8b887a..57c10ee 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -635,6 +635,10 @@ zle -N slash-backward-kill-word #k# Kill everything in a word up to its last \kbd{/} bindkey '\ev' slash-backward-kill-word +#k# Kill everything in a word up to its last \kbd{/} +bindkey '\e^h' slash-backward-kill-word +#k# Kill everything in a word up to its last \kbd{/} +bindkey '\e^?' slash-backward-kill-word # use the new *-pattern-* widgets for incremental history search if is439 ; then -- 2.1.4