I see, learn and rediscover… everyday!
 
Bash spellchecker

Bash spellchecker

Spell checking in bash is a cool feature which can be added by adding just one line in your bashrc file.

shopt -s cdspell

That’s all 🙂
Add that to your ~/.bashrc file.
If you want to enable this for all the users, then append this to your /etc/bash.bashrc (in Ubuntu) or /etc/bashrc (in Fedora). Of course, you need the root privilege to edit the files in /etc.

Now try these
cd /hoem
cd /hoe

Cool right 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.