unalias not found?

Discussion in 'Mac Basics and Help' started by delude, May 28, 2010.

  1. delude macrumors 6502

    Joined:
    Dec 27, 2007
    Location:
    UK
    #1
    I was trying to add wget to terminal...and now I get:

    Code:
    -bash: unalias: wget=curl -O: not found
    I've removed the wget stuff now using '/usr/local/share/wget/uninstall-wget.pl' but what can I do to get rid of this message?

    thanks
     
  2. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #2
    I am assuming you get this when you launch Terminal?
     
  3. delude thread starter macrumors 6502

    Joined:
    Dec 27, 2007
    Location:
    UK
    #3
    Yes I do. Thanks for the quick reply :)
     
  4. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #4

    You will need to remove that line from your bashrc.

    In Terminal type:

    Code:
    nano ~/.bashrc
    And remove the lines that refer to wget.

    This could be in bash_profile, if you don't find any lines referencing wget in bashrc try

    Code:
    nano ~/.bash_profile
     
  5. delude thread starter macrumors 6502

    Joined:
    Dec 27, 2007
    Location:
    UK
    #5
    Sorry, I'm a real noob to terminal. There aren't any lines when I type 'nano ~/.bashrc', it's just blank, do I need to type something else in?
     
  6. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #6
    That just means there is nothing in the file. Type Control + X to exit.

    Read my edit above and try that one.
     
  7. delude thread starter macrumors 6502

    Joined:
    Dec 27, 2007
    Location:
    UK
    #7
    Okay, I've deleted the lines but now I have this at the bottom:


    File Name to Write: /Users/James/.bash_profile
    ^G Get Help ^T To Files M-M Mac Format M-P Prepend
    ^C Cancel M-D DOS Format M-A Append M-B Backup File

    Seems like you found it though, thanks so much!
     
  8. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #8
    It sounds like you hit Control + O already, now hit Enter/Return.

    Then type Control + X to exit.
     
  9. delude thread starter macrumors 6502

    Joined:
    Dec 27, 2007
    Location:
    UK
    #9
    Awesome! Looks likes it's fixed now, thanks so much :)

    I really appreciate the almost instant responses!
     
  10. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #10
    Good timing on your part, my internet connection went down for about 30 minutes right after my last response! Stupid comcast...

    Glad it is working for you now.
     

Share This Page