Results 1 to 3 of 3

Thread: Terminal spelling correction

  1. #1
    Join Date
    Aug 2007
    Location
    Australia
    Beans
    286
    Distro
    Ubuntu Development Release

    Terminal spelling correction

    G'day,

    Quick question for something that has been bugging me for a while. When I am trying into the terminal and attempt to type "apt-get", I constantly hit "apt0get".

    Is there a way to have the terminal auto-correct this error as it would save me a small headache.
    inb4: "search before posting". Had a quick browse but don't believe I could find anything probably as the searches I used were very vague.

    Thanks
    BRING BACK TEH PONIES!

  2. #2
    Join Date
    Jul 2009
    Beans
    425
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Terminal spelling correction

    You could add to your ~/.bash_aliases file
    Code:
    alias apt0get='apt-get'
    it won't correct your typing mistake but it will run the correct program.
    Mark your thread as [SOLVED], use Thread Tools on forum page.

  3. #3
    Join Date
    Sep 2010
    Beans
    898

    Re: Terminal spelling correction

    A partial solution is to use the TAB key, which does auto-completion.
    Type the first few characters, press TAB once or twice, and it will attempt to fill in the rest of the command.

    Or you can use Ctrl+r to recall previously typed commands from the history file.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •