title: Creating permanent executable aliases
body: <p>I have MySQL installed (MAMP, Mac OS X) but need to call it by the full path each time I access it from the shell.  I created an alias: <code>alias mysql='/Applications/MAMP/Library/Bin/mysql</code>, but this only lasts as long as my terminal/Bash session.  </p>
  
  <p>What is an effective way for establishing permanent aliases that will work across users? (I need to be able to execute commands from PHP).  Should I set up aliases in the Bash start up script (how is that done?), or is it better to edit the sudoers file? (Could use an example of that as well..)</p>
  
  <p>Thanks--</p>
  
  <p><strong>EDIT- Based on answer:</strong></p>
  
  <p>I just tried creating a <code>~/.bashrc</code> and wrote the following:</p>
  
  <blockquote>
    <p>alias mysql='/Applications/MAMP/Library/bin/mysql'</p>
  </blockquote>
  
  <p>But this doesn't seem to have any effect.  Is there a special syntax for this file?</p>