Where is the Terminal Login Script?

vihung

Guru
I just installed bash for OS X
I changed my default shell to /bin/bash in NetInfo and the Terminal Preferences, and it works fine.

However, it did not run my custom .bashrc

Now ... if in terminal preferences, I uncheck the 'Run Login Script' checkbox, it does run my .bashrc, but then my other environmment variables, like PATH and MANPATH are not set properly.

My questions are ... where is this login script it reads, does it work with bash, and how can I change it too look at ~/.bashrc when it is done

Also, related, I need to add /usr/X11R6/bin to my PATH for all users as well - I assume that will be done in this login script as well
 

laop

Registered
Where did you get a bash compatible to OSX??

Can you tell me how to install it in OSX???

tanks

laop
 

knussear

Registered
I need to add /usr/X11R6/bin to my path permanantly, using the stock Terminal

Does anyone know the syntax do this, is it via a .tschrc file?
 

snoozer

Registered
I had the same problem with .bashrc not getting picked up after I changed my Terminal preferences. When I renamed it to .bash_profile, it worked. This is weird, because .bashrc worked in 10.0.4, but at least there is a workaround for 10.1.

--Andy
 

knussear

Registered
I got it to work via a .tcshrc file, the syntax is slightly different than I have used in IRIX, Solaris, or Linux. The key was {} parens surrounding the $path in the setenv statement.

Here is mine adding the X11R6 path and the path for the fink installs

setenv PATH "${PATH}:/usr/X11R6/bin:/sw/bin"
 
Top