Results 1 to 6 of 6

Thread: Make zsh stop asking to change aptitude to .aptitude

  1. #1
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,554
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Make zsh stop asking to change aptitude to .aptitude

    Hi ya all,
    I'm having a tiny (but really annoying problem) with zsh. When I type in aptitude it keeps asking me if I want to change it to .aptitude instead. So is there anyway to make the stupid terminal stop asking me to do so?

  2. #2
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Make zsh stop asking to change aptitude to .aptitude

    make sure your ~/.aptitude is readable and writable

    can u paste the exact error or a screenshot.

  3. #3
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,554
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Make zsh stop asking to change aptitude to .aptitude

    Actually, not that kind of error
    Code:
    zsh: correct 'aptitude' to '.aptitude' [nyae]?
    whenever I try to launch sudo aptitude from the terminal, and I have to press 'n' everytime to have it NOT auto-correcting 'aptitude' to '.aptitude'. Very annoying. It doesn't happen when I just run aptitude though (no sudo).

  4. #4
    Join Date
    Jun 2007
    Beans
    2

    Re: Make zsh stop asking to change aptitude to .aptitude

    I have exactly the same "issue". Really annoying, and it can get worse. If you try to install subversion, for example, while already having a folder called .subversion, this is what you get:

    Code:
    sudo aptitude install subversion
    zsh: correct 'aptitude' to '.aptitude' [nyae]? n
    zsh: correct 'subversion' to '.subversion' [nyae]?
    Any clues on how to disable this would be really appreciated.

  5. #5
    Join Date
    May 2005
    Location
    Los Angeles, CA, USA
    Beans
    187
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make zsh stop asking to change aptitude to .aptitude

    In your .zshrc,

    alias aptitude = 'nocorrect aptitude'

  6. #6
    Join Date
    Jun 2007
    Beans
    2

    Re: Make zsh stop asking to change aptitude to .aptitude

    Hi krismatth3,

    First of all, thank you for the answer!

    I tried adding that line to my .zshrc (and reloading it by creating a new console) but it didn't work. But I noticed a strange behavior, independently of my adding the alias to my .zshrc: if I type "aptitude show tree", for example, it works. If I type "sudo aptitude show tree" then zsh asks me if I want to correct 'aptitude' to '.aptitude'.

    Hope it helps.

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
  •