Several points.
Most importantly:
To fix this in windows and tabs in terminal.app: put commands in .bash_profile.
Also note:
.bashrc is used by non-interactive shells.
.bash_profile is used by interactive shells.
A common idiom is to set up .bash_profile to call .bashrc...