View Single Post
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#5
Originally Posted by free View Post
An .inputrc is what you need.
Of course! I forgot about it. Mine is quite complete, in fact, but I made it several years ago.

But when you have played some time with ctrl-r, you'll never need this anymore.
ctrl-r is indeed more flexible since you can search by the middle, but I always search by the first letters... and <Up> is 1 key press less... )

PHP Code:
# search in the history (up & down)
"\e[A"history-search-backward
"\e[B"history-search-forward 
In my case, it is \eOA and \eBA (not sure why).

Thanks!
L.