You misunderstand how .bashrc is supposed to work. It is supposed to be automatically invoked by the shell, and its contents executed. You shouldn't have to do anything, other than open Terminal as usual.
You misunderstand how .bashrc is supposed to work. It is supposed to be automatically invoked by the shell, and its contents executed. You shouldn't have to do anything, other than open Terminal as usual.
Yep... the startup behavior will depend on what other dot-files are present.
I use only ~/.bash_login and ~/.bashrc (and i source the second from the first). That way i have a special file for login shells, and also one for other interactive shells (such as when we execute sudo -s).
This link might work in your browser (via copy/paste):
file:///usr/share/doc/bash/bashref.html#SEC66