Results 1 to 3 of 3
  1. #1

    Member Since
    Oct 28, 2011
    Problems setting PATH variable in Lion
    Hello, can anyone tell me why OS X Lion won't save my PATH when I add a new path to it? I use export PATH=$PATH:/"my_pathhere" to add the path that I want added. Upon typing echo $PATH before I close the terminal window it shows up in the path. However, once I exit the terminal window and re-open it the new path variable no longer shows up? I don't get it. I have just upgraded to Lion from Snow Leopard and did this exact same thing no longer than a week ago in Snow Leopard and had no problem.

  2. #2

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Tucson, AZ
    Way... way too many specs to list.
    Because you're never saved it to your profile, you've only loaded it into memory.

    Try this.

    echo "export PATH=$PATH:/path/to/whatever" >> .bash_profile

    when done, then do

    . .bash_profile

    That should reload the profile and make the path change persistent
    This machine kills fascists
    Got # ? phear the command line!

  3. #3

    Member Since
    Oct 28, 2011
    Thanks Mike, I believe that did the trick!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. path environment variable
    By blackwaterdev in forum Switcher Hangout
    Replies: 5
    Last Post: 04-04-2013, 04:06 AM
  2. Setting the PATH
    By dewijones92 in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 05-04-2011, 06:27 PM
  3. How to edit PATH variable outside of terminal
    By oxy126 in forum macOS - Operating System
    Replies: 4
    Last Post: 04-22-2011, 06:29 PM
  4. setting path on OS
    By greisen in forum macOS - Apps and Games
    Replies: 0
    Last Post: 08-31-2009, 07:45 PM
  5. Changing PATH variable
    By burnt1ce85 in forum macOS - Development and Darwin
    Replies: 3
    Last Post: 06-08-2008, 03:47 AM

Posting Permissions

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