Editing my .bash_profile

Discussion in 'OS X' started by phil1995, Jun 7, 2009.

  1. macrumors member

    Joined:
    Aug 4, 2008
    #1
    I am trying to add a root path to my system for my android sdk. I created a .bash_profile under the ~/ and the contents are as below:

    export PATH={PATH}:/Users/phil/android-sdk-mac_x86-1.5_r2/tools
    export PATH={PATH}:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

    However, if I type "echo $PATH" I get the following:

    {PATH}:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

    How can I get the "export "export PATH={PATH}:/Users/phil/android-sdk-mac_x86-1.5_r2/tools" to show up as a path?
     
  2. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Like so,
    Code:
    export PATH=[B]$[/B]PATH:/Users/phil/android-sdk-mac_x86-1.5_r2/tools
    export PATH=[B]$[/B]PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
     
  3. thread starter macrumors member

    Joined:
    Aug 4, 2008
    #3
    Thank you very much
     

Share This Page