title: How to find out where alias (in the bash sense) is defined when running Terminal in Mac OS X
body: <p>How can I find out where an alias is defined on my system?  I am referring to the kind of alias that is used within a Terminal session launched from Mac OS X (10.6.3).</p>
  
  <p>For example, if I enter the <code>alias</code> command with no parameters at a Terminal command prompt, I get a list of aliases that I have set, for example:</p>
  
  <pre><code>alias mysql='/usr/local/mysql/bin/mysql'
  </code></pre>
  
  <p>However, I have searched all over my system using Spotlight and <code>mdfind</code> in various startup files and so far can not find where this alias has been defined. ( I did it a long time ago and didn't write down where I assigned the alias).</p>