The single UNIX setting that always saves me time

Anyone who spends a lot of time on the command line will know the frustration of trying to locate a previous command from your bash history. The following configuration allows a simple one button ability to search through your bash history using the up and down arrows. Unlike other approaches like CTRL-R, which search the history for a substring anywhere in the command, this method will search the history using the text to the left of the cursor. So, if I type ls and then up I will cycle through the most recent commands starting with ls. I personally find this makes it a much faster way to locate previous commands. To set it, simply add the following lines to ~/.inputrc:

"\e[A": history-search-backward
"\e[B": history-search-forward