I am sure that there is an answer to the screen in this manual, but I cannot find it! I want the bash shell spawned by the GNU screen to be the source in the file in addition to the already running .bashrc.
I can’t put the call into a file in .bashrc because on our site .bashrc files are automatically restored at login.
Any ideas?
EDIT:
I created this little script (screen_bash.sh):
bash --rcfile ~/.screen_bashrc
Then added
shell $HOME/screen_bash.sh
In my .screenrc
The file ~ / .screen_bashrc was
<my_setup_stuff>
export SHELL=bash
SHELL = bash is required so that programs such as vim can run sub-shells correctly.
source
share