Microwave Biscuit

Quick terminal tip!

Posted in Linux, ubuntu by microwavebiscuit on November 12, 2007

In your bashrc file ( /home/username/.bashrc ) put in:


shopt -s cdspell

This will do auto typo correction in the terminal. So, for instance, if I type in:


cd /hom/me/

It will automagically go to /home/me.

Cool, no?

Advertisements
Tagged with:

5 Responses

Subscribe to comments with RSS.

  1. Jake said, on November 12, 2007 at 3:51 pm

    Wow, I wish I would have known about this a long time ago. Thanks! Earned a permanent spot in my .bashrc.

  2. Scott said, on November 12, 2007 at 6:45 pm

    Thanks for the tip

  3. dthomasdigital said, on November 12, 2007 at 6:53 pm

    Have you noticed that in planet Ubuntu users, your headlines don’t show up, just the name of your blog…the exact same thing is happening to my blog. I’ve talked to wordpress tech support but they were not much help….You have any ideas?

  4. dthomasdigital said, on November 12, 2007 at 6:54 pm

    Oh and this tip is great

  5. […] Quick Terminal tip! – A command to add to your .bashrc that autocorrects commands at the terminal. […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: