title: Should aliases go in .bashrc or .bash_profile?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong>
    <a href="https://stackoverflow.com/questions/415403/whats-the-difference-between-bashrc-bash-profile-and-environment">What&#39;s the difference between .bashrc, .bash_profile, and .environment?</a></p>
  </blockquote>
  
  
  
  <p>It seems that if I use</p>
  
  <pre><code>alias ls='ls -F'
  </code></pre>
  
  <p>inside of .bashrc on Mac OS X, then the newly created shell will not have that alias. I need to type <code>bash</code> again and that alias will be in effect.</p>
  
  <p>And if I log into Linux on the hosting company, the <code>.bashrc</code> file has a comment line that says:</p>
  
  <blockquote>
    <p>For non-login shell</p>
  </blockquote>
  
  <p>and the <code>.bash_profile</code> file has a comment that says</p>
  
  <blockquote>
    <p>for login shell</p>
  </blockquote>
  
  <p>So where should aliases be written in? How come we separate the login shell and non-login shell?</p>
  
  <p>Some webpage say use <code>.bash_aliases</code>, but it doesn't work on Mac OS X, it seems.</p>