Use *-pattern-* for incremental history searches
authorFrank Terbeck <ft@bewatermyfriend.org>
Thu, 8 Oct 2009 09:31:07 +0000 (11:31 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Thu, 8 Oct 2009 09:31:07 +0000 (11:31 +0200)
debian/changelog
etc/zsh/zshrc

index 05b3902..c8e2dd3 100644 (file)
@@ -1,8 +1,10 @@
 grml-etc-core (0.3.76) UNRELEASED; urgency=low
 
   * zshrc: add openssl hash functions [Closes: issue741]
+  * zshrc: use history-incremental-pattern-search-* for incremental history
+    searches per default (via ^r and ^s).
 
- -- Frank Terbeck <ft@grml.org>  Mon, 21 Sep 2009 13:20:36 +0200
+ -- Frank Terbeck <ft@grml.org>  Thu, 08 Oct 2009 11:29:38 +0200
 
 grml-etc-core (0.3.75) unstable; urgency=low
 
index 2dadf9c..43e77a1 100644 (file)
@@ -622,6 +622,11 @@ zle -N slash-backward-kill-word
 #k# Kill everything in a word up to its last \kbd{/}
 bindkey '\ev' slash-backward-kill-word
 
+# use the new *-pattern-* widgets for incremental history search
+if is439 ; then
+    bindkey '^r' history-incremental-pattern-search-backward
+    bindkey '^s' history-incremental-pattern-search-forward
+fi
 # }}}
 
 # a generic accept-line wrapper {{{