Quickly search your bash history using arrow keys
Quickly search your bash history using arrow keys
Add these lines to your /etc/inputrc to enable the functionality.
"\e[A": history-search-backward
"\e[B": history-search-forward
Thanks Reddit and Archwiki!\
(http://wiki.archlinux.org/index.php/Bash)
p.s. this functionality is included in your inputrc file by default on Ubuntu 10.4 and can be used by uncommenting the lines (41 & 42), but rather than arrows it uses Page Up and Page Down.
Published
14 July 2010