From bd6fb996af3e45ef0d3b403965027dc2d708d5ff Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Thu, 20 Mar 2008 20:34:58 +0100 Subject: [PATCH 1/1] Add proper bindings for history-beginning-search-{forward,backward} --- debian/changelog | 7 ++++++- etc/zsh/zshrc | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index e0ce867..bb95a8e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,14 @@ grml-etc-core (0.3.50) unstable; urgency=low + [ Michael Prokop ] * zshrc: update function git-get-plaindiff() so it works around the "generating..." bug - -- Michael Prokop Sat, 08 Mar 2008 14:13:50 +0100 + [ Frank Terbeck ] + * zshrc: add new bindings: '^xP' and '^xp' for + history-beginning-search-{forward,backward} + + -- Frank Terbeck Thu, 20 Mar 2008 20:33:49 +0100 grml-etc-core (0.3.49) unstable; urgency=low diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 9a89178..b864606 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -446,7 +446,9 @@ bindkey '\e[1~' beginning-of-line # home bindkey '\e[4~' end-of-line # end bindkey '\e[A' up-line-or-search # cursor up bindkey '\e[B' down-line-or-search # - -bindkey '^x' history-beginning-search-backward # alternative ways of searching the shell history + +bindkey '^xp' history-beginning-search-backward +bindkey '^xP' history-beginning-search-forward # bindkey -s '^L' "|less\n" # ctrl-L pipes to less # bindkey -s '^B' " &\n" # ctrl-B runs it in the background # if terminal type is set to 'rxvt': -- 2.1.4