Cold Chicken » bash http://smux.net/blog Tue, 30 Aug 2011 19:51:16 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 Page Up and Page Down History Search on bash http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/ http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/#comments Sun, 22 Mar 2009 11:24:10 +0000 Sena http://smux.net/blog/?p=57 One thing I got used to when using SLES was that I was able to search bash command history simply by typing the first few letters of a previous command, and then pressing Page Up. However, Ubuntu doesn’t seem to come with that feature enabled by default.

After fiddling with CTRL-R a few times, I checked out how to make this work.

Well, simply add the following two lines on a .inputrc file on your home directory, or uncomment them on /etc/inputrc for a system-wide effect:

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

That’s it. Enjoy.

]]>
http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/feed/ 0