![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bash ssh login script | modcan | Shell Programming and Scripting | 2 | 06-03-2008 10:39 PM |
| Bash file manipulation help | netmaster | Shell Programming and Scripting | 2 | 03-08-2008 07:01 AM |
| bash script for ssh login- | big_pil | Shell Programming and Scripting | 5 | 10-29-2007 08:23 AM |
| Can I modify the .bashrc file instead of .profile file to customize my login? | Hyunkel | Shell Programming and Scripting | 1 | 09-25-2007 05:37 PM |
| How to get bash to be the login shell? | amheck | SUN Solaris | 8 | 03-10-2006 01:39 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
which file is sourced by bash on login (Mac OS X 10.5.3)?
Hi:
So my current Python (2.52) rig is not working as intended. "echo $PATH" in bash gives me 'X'" that's not what i want, so i need to change my path. To do that, there appeared to be four choices (all in my ~/ directory--note: I'm root, it's my Mac, but i'm in a user account): .profile .bashrc .bash_profile .bash_login I inserted (unique) dummy paths in each of these, sourced them, keyed in "echo $PATH" again--nothing changed. Apparently none of these files are sourced by bash on login. I looked for a similar file in root (/env) but found nothing. Finally, i'm aware that OS X uses the .plist to set environment variables--fine, but mine is empty (as i thought it would be) so that's not the culprit. This is a painfully basic question that i was pretty sure i knew, but didn't. Any ideas? Thanks, --alex |
| Forum Sponsor | ||
|
|
|
|||
|
This might not be exactly the answer you were looking for, but put this in your .bash_profile
#path info export PATH="$PATH:/your/test/path/here" Quit the Terminal application (not just closing the window), and relaunch the terminal. You $PATH should reflect the change. |