title: How do I edit $PATH (.bash_profile) on OS X?
body: <p>I am trying to edit an entry to PATH, as I did something wrong.</p>
  <p>I am using <a href="https://en.wikipedia.org/wiki/OS_X_Yosemite" rel="noreferrer">Mac OS X v10.10.3</a> (Yosemite)</p>
  <p>I have tried:</p>
  <pre><code>touch ~/.bash_profile; open ~/.bash_profile
  </code></pre>
  <p>But the file editor opens with nothing inside.</p>
  <p>My problem:</p>
  <p>I am trying to install ANDROID_HOME to my PATH</p>
  <p>I misspelled it, but when I closed the terminal and went back it was gone, so I tried again:</p>
  <blockquote>
  <pre><code>export ANDROID_HOME=/&lt;installation location&gt;/android-sdk-macosx
  export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  </code></pre>
  </blockquote>
  <p>This time, I typed the command correctly but, when I closed the terminal, my settings disappeared again.</p>
  <p>How do I execute my desired settings?</p>
  <p>If I was to edit bash.profile, how would I enter the above code?</p>