Monday, November 3, 2008

Search BASH History Page Up Page Down

I've been using SUSE Linux for a long time and really enjoyed the Page Up and Page Down functionality to search your command history in Bash. Sadly out of the box Ubuntu does not enable this feature, but being a Linux distro there is a way.

Edit this file: /etc/inputrc

and uncomment lines 41 and 42 as shown below:

"\e[5~": history-search-backward
"\e[6~": history-search-forward

Also Ubuntu does not ship with VIM so a sudo apt-get install vim, will get that sorted.

Enjoy!

No comments:

Followers