Bash Fun – history and navigation

Garret posted two very useful tips on his blog:

  1. Search history in bash – Hitting CTRL-r allows you to search the Bash history by typing a word. It’ll match the word and bring up that command!
  2. Super-useful inputrc enables you to CTRL-left and CTRL-right through your current command line, just like in the good ol’ DOS days!

Can’t believe the inputrc stuff isn’t enabled by default and I wish I knew the first one a long time ago!

Author: Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Google+ and Twitter.

Leave a Reply