title: Registering custom shell function in system (OSX)
body: <p>today I wanted to write a function which will deploy my blog page (developed in nanoc) to github pages automatically - here's the script:</p>
  
  <pre><code>function cmit()
  {
    nanoc compile;
    git add .;
    git commit -am $1;
    git push origin source;
    cd output; git add .;
    git commit -am $1;
    git push origin master;
    cd ..;
    echo 'new version deployed! now starting nanoc locally..';
    nanoc aco;
  }
  </code></pre>
  
  <p>Example usage: <code>cmit "my example commit!"</code></p>
  
  <p>I don't really know how register my function in system (OSX) - in <code>.bashrc</code>, <code>.bash_profile</code> or maybe somewhere else? Please help! </p>