Quote:
Appending text to environment variables like your PATH should not be done in the .bashrc, because it gets run often when subshells are started. Place lines like this in your ~/.bash_profile:
PATH=$HOME/bin:$PATH # Adds to path, only in .bash_profile
|
That's according to the wiki at LQ about bash.
What about setting enviornment variables instead of appending? Which dot bash file should they be put in? Should these be put in .bashrc or .bash_profile and why and why not?
Code:
export BROWSER=evolution
export EDITOR=vim
MAIL=/var/spool/mail/chris && export MAIL