snipt

Ctrl+h for KB shortcuts

Text only

Mac OS X Leopard Terminal bash profile

1
2
3
4
5
Use ~/.bash_profile instead of .bashrc

A login shell reads the first of /etc/profile, ~/.bash_profile or ~/.bash_login. An interactive shell reads ~/.bashrc or the file you override with --rcfile. A non-interactive shell reads none of these.

If you use the default in Terminal, it starts a login shell. If you open a new tab it does the same.
https://snipt.net/embed/485c77a220c18622f348824c6c014a98/
/raw/485c77a220c18622f348824c6c014a98/
485c77a220c18622f348824c6c014a98
text
Text only
6
2019-07-20T10:50:39
True
False
False
/api/public/snipt/4784/
mac-os-x-leopard-terminal-bash-profile
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Use ~/.bash_profile instead of .bashrc </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>A login shell reads the first of /etc/profile, ~/.bash_profile or ~/.bash_login. An interactive shell reads ~/.bashrc or the file you override with --rcfile. A non-interactive shell reads none of these. </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>If you use the default in Terminal, it starts a login shell. If you open a new tab it does the same. </span></pre></div> </td></tr></table>
bash, leopard, mac, osx, terminal