Search bash history with arrow keys

This is a nice trick to selectively browse your bash history with the up/down arrow keys. Replicated from here for my convenience:

Create ~/.inputrc and fill it with this:

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on

This allows you to search through your history using the up and down arrows i.e. type “cd /” and press the up arrow and you’ll search through everything in your history that starts with “cd /”.