Fixing typos with bash


I frequently find myself make silly typing mistakes when changing between directories. Since this is especially annoying with long directory names, I use the bash cdspell option to transparently fix my typing mistakes. To set this nifty option, you can add the following line to your .bash_profile:

$ grep cdspell .bash_profile
shopt -s cdspell

This is a super useful option, and makes life a bit easier for folks with no typing skillz. Niiiiice!

This article was posted by Matty on 2006-03-04 13:09:00 -0400 -0400