screen running shell with another rc file
Posted on 2010-09-09
Hi, I have special configuration file for bash in some cases.
bash --noprofile --rc-file .mybashrc (I don't want to load the default one)
So I have s script where I run the command above.
But when I run a screen, it runs bash with default rc files and profile one.
so i tried to pass to screen as -s the script calling bash with rc file, but screen terminates immediately, no error thrown.
One last idea I have is merge my configs and direct loding based on some environment variable or so.
Are there other options?