| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Oct 28, 2011
Posts: 2
![]() |
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.
|
| QUOTE Thanks | |
![]() Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,588
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff
|
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 mike This machine kills fascists Got # ? phear the command line! |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| path environment variable | blackwaterdev | Switcher Hangout | 5 | 04-04-2013 04:06 AM |
| Setting Up Time Capsule - Problems | Jetheat | Internet, Networking, and Wireless | 52 | 01-01-2012 07:00 AM |
| Apple outlines Lion upgrade path for business and education customers | OneMoreThing... | Apple Rumors and Reports | 0 | 06-17-2011 04:00 PM |
| How to edit PATH variable outside of terminal | oxy126 | OS X - Operating System | 4 | 04-22-2011 06:29 PM |
| Airport Express Problems Setting Up | AW2007 | Internet, Networking, and Wireless | 0 | 03-05-2009 07:39 PM |
All times are GMT -4. The time now is 08:34 PM.
Powered by vBulletin