Wednesday, August 13, 2008

BASH profile and screen

It often happens that when using screen all the settings in .bash_profile are not available under screen. It has happened to me on Solaris and recently on a Rocks Cluster. The solution is it edit your ~/.screenrc and put the following line in it.

shell -$SHELL

Now all new screens that you create shall use the shell specified in your $SHELL environment variable, in my case it is bash thus making available the changes in .bash_profile.