Auto-Correct Spelling Mistakes In Bash Shell



I am very poor at both typing and spelling, and often make silly little mistakes when typing. The following tweak will help you a lot if you have the same problems. To open and edit the .bashrc you can use any text editor like kate, gedit, vim, nano etc.

At the bottom of your .bashrc file, add the following:

shopt -s cdspell

This will ignore any simple mistakes such as typing cd /otp instead of cd /opt, or cd /ect instead of cd /etc.

Simple, but very effective!




Share your views...

0 Respones to "Auto-Correct Spelling Mistakes In Bash Shell"

Post a Comment

 

About Me

Hey! I'm Jam, a part time web developer / blogger form the UK. I have a love for anything involving Artificial Intelligence, and robotics.

I'm also quite a fan of Ubuntu Linux! And I'm guessing you are since you're here? If you would like to contribute your own posts to this blog, then please get in touch!

Thinking about getting your own website? Click on the below link for great prices, and great designs!

Jam1e.co.uk

Our Partners

Would you like to see your link here? Contact us to find out how!

© 2010 Jam's Ubuntu Linux Blog All Rights Reserved Thesis WordPress Theme Converted into Blogger Template by Hack Tutors.info