From: Frank Terbeck Date: Wed, 8 Dec 2010 11:59:54 +0000 (+0100) Subject: Adding a kill to slash binding to alt-backspace X-Git-Tag: v0.3.87~1 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=fff04ca7d720585b70fd52fe820dc08a399e46c0;p=grml-etc-core.git 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). --- 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