How to force Gnu screen to load my bash .profile
shell -$SHELL
Add the above line to your ~/.screenrc
, this will make screen start-up using a login shell which will load your ~/.bash_profile
.
Some Mac applications rely on .bash_profile and some on .bashrc. I have not figured out any particular rule for knowning which one is getting loaded but for consistency this is my .bash_profile:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi