I'm sure there is an answer to this in the manual to screen, but I can't find it! I want the bash shell spawned by GNU screen to source in a file in addition to the .bashrc that it already runs.
I can't put a call to the file in .bashrc because on our site .bashrc files get regenerated automatically on login.
Any ideas?
EDIT:
I created this little script (screen_bash.sh):
bash --rcfile ~/.screen_bashrc
Then added
shell $HOME/screen_bash.sh
To my .screenrc
The ~/.screen_bashrc file was
<my_setup_stuff>
export SHELL=bash
The SHELL=bash is necessary so that programs like vim can launch sub-shells correctly.