UP/DOWN filter history by typed string as prefix.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 05 Aug 2011 18:22:02 +0300
changeset 160 d45758677427
parent 159 022803a4d179
child 162 3634a8ff70f5
child 163 54c314ad989d
UP/DOWN filter history by typed string as prefix.
.inputrc
--- a/.inputrc	Mon Aug 01 14:53:01 2011 +0300
+++ b/.inputrc	Fri Aug 05 18:22:02 2011 +0300
@@ -78,6 +78,12 @@
 "\e[3;5~": kill-word
 "\C-_": backward-kill-word
 
+# UP/DOWN filter history by typed string as prefix.
+"\e[A": history-search-backward
+"\C-p": history-search-backward
+"\e[B": history-search-forward
+"\C-n": history-search-forward
+
 # Local Variables:
 # mode: shell-script
 # fill-column: 78