header image
[ # ] Search Bash History
September 27th, 2009 under Linux

I keep forgetting how to enable the history search of bash. So here is how to get it:

put

1
2
"\e[5~": history-search-backward<br />
"\e[6~": history-search-forward
"\e[5~": history-search-backward<br />
"\e[6~": history-search-forward

into

1
inputrc
inputrc

this gives us the history search on

1
Page Up
Page Up
and
1
Page Down
Page Down