When ever I close and open Terminal.app, it never loads my ~/.bash_profile. I have my RVM setup at the top of the file but it never loads it.
As you can see, when I type rvm
into Terminal, it says command not found
this is a pain as I have to run source ~/.bash_login
every time I open Terminal.
Am I the only one with this problem? What am I doing wrong?
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
And that /usr/bin/login setting is self-explanatory... – Jason Salaz Aug 16 '11 at 20:55source ~/.bash_login
" Which is it? Are you using ~/.bash_profile or ~/.bash_login? Only one of them will be run. – Chris Page Aug 19 '11 at 11:21