I don't think that there is a "config file" you can
edit to achieve automatic saving of environment
variables. The user would have to actively put
the variables he needs preserved into either
.bashrc or ./bash_profile (depends on how you
invoke bash, "man bash" for details) to have
them "preserved" between sessions.
If you want to have a bash-script get specific
variables between sessions, write & read them
to/from files.
Code:
my_exit()
{
echo $MY_VAR_1 > ~/.my_var_1
exit
}
my_init()
{
export MY_VAR_1=`cat ~/.my_var_1`
}
and so forth ...
Cheers,
Tink