Screencast: Improving the behaviour of the up and down arrows in bash

Mar 6, 2014 • Jean-Christophe Leyder

Below is the screencast I created about improving the behaviour of the up/down arrows when recalling commands from the history in the bash shell.

The first screencast I recorded lasted over 6 minutes, so I removed extraneous examples. The second version lasted about 4 minutes, with lots of hhhhmmmms. This screencast shown below is the third and final version, lasting 2:59.

I used QuickTime Player to record the screen, and didn’t edit the video at all (other than trimming the beginning and the end).

The two lines to add to the $HOME/.inputrc shown in the screencast are:
"e[A":history-search-backward<br /> "e[B":history-search-forward

I hope you will find this tip useful!

Direct link to my screencast.