Useful bash history tricks

This is a reminder to my future self (source https://coderwall.com/p/oqtj8w)

Create ~/.inputrc and fill it with this:

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 /”.