Note that output from .bashrc stuffs up rsync and scp, in case you use them.<p>Enclose the lot in
{
....
} &gt;&amp;2<p>to send output to stderr instead.<p>Or only output if the session is interactive, with isatty or if PS1 is set or $- contains &#x27;i&#x27;.