title: Exporting variable for noninteractive, nonlogin shell on OSX
body: <p>I have the situation where I want to run a <code>bashrc</code> file on an OSX machine every time a shell is opened.</p>
  
  <p>In this case, there is no login shell, and the shell is noninteractive. I've tried <code>~/.profile</code> <code>~/.bash_profile</code>. According to <a href="http://www.faqs.org/docs/bashman/bashref_63.html" rel="nofollow">http://www.faqs.org/docs/bashman/bashref_63.html</a>, I need to do <code>export BASH_ENV=/etc/bashrc</code>, but I don't know the bottom-most bash instance where I can export this.</p>