The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2008
Registered User
 

Join Date: Nov 2007
Location: Gibraltar
Posts: 2
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-01-2008
Registered User
 

Join Date: Sep 2002
Location: San Fran
Posts: 108
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.
Reply With Quote
  #3 (permalink)  
Old 07-11-2008
ninjaslim's Avatar
Registered User
 

Join Date: May 2008
Location: North Brunswick, NJ
Posts: 10
zsh is my preferred shell on all Unixes. I use Xterm with zsh in XQuarts on Mac OS X. I had issues with setting PATH when I switched shells as well. I changed the PATH variable in my .profile and added this "source ~/.profile" to my zshrc. It works rather well, and I believe .profile is shell-independent, so if other programs try to access it, then they can. I use the same workaround for screen, as well.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0