Greetings, I've been trying to find some hard and fast information about the implementation of the bash shell in Terminal of 10.5. Right now I have several complaints, namely that the new Terminal is lousy about using the .bashrc file. There are two places now (as opposed to one in the old Terminal) where it is possible to specify "startup commands". In the Preferences for Terminal, the first tab under 'Startup', the option "Shells open with:" is given. If I recall, this is what the old Terminal used as well. Here I specify
/bin/bash --rcfile /Users/scott/.bashrc
to read my .bashrc file. Only in Leopard, this does not actually seem to work (which I can tell as my 'ls' is not in the stupendous color I would expect from the alias ls='ls -G' in my .bashrc file.) This is all I needed to do before I upgraded Terminals to have my resource file read.
So I venture further into 'Settings', one tab over, and select the 'Shell' tab there. Here is another 'Startup' option, so I enter the same command here, selecting the 'Run command:' box. Still no go. After selecting the 'Run inside shell' box from the same tab on the third try, I get my settings. The only problem is that my terminal prompt is now a boring 'bash-3.2$' and when I create a new tab, the resource file is not used. Only if I create a new window will it again run the command in the shell and use the resource file.
Can anyone post with some information about how Terminal goes about selecting what files to use (/etc/private/bashrc, .profile, bash_profile, etc.) and how one might overcome what I've laid out above as annoyances?
Many thanks,
-S
/bin/bash --rcfile /Users/scott/.bashrc
to read my .bashrc file. Only in Leopard, this does not actually seem to work (which I can tell as my 'ls' is not in the stupendous color I would expect from the alias ls='ls -G' in my .bashrc file.) This is all I needed to do before I upgraded Terminals to have my resource file read.
So I venture further into 'Settings', one tab over, and select the 'Shell' tab there. Here is another 'Startup' option, so I enter the same command here, selecting the 'Run command:' box. Still no go. After selecting the 'Run inside shell' box from the same tab on the third try, I get my settings. The only problem is that my terminal prompt is now a boring 'bash-3.2$' and when I create a new tab, the resource file is not used. Only if I create a new window will it again run the command in the shell and use the resource file.
Can anyone post with some information about how Terminal goes about selecting what files to use (/etc/private/bashrc, .profile, bash_profile, etc.) and how one might overcome what I've laid out above as annoyances?
Many thanks,
-S