title: Setting PATH environment variable in OSX permanently
body: <p>I have read several answers on how to set environment variables on OSX permanently.</p>
  <p>First, I tried this, <a href="https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux">How to permanently set $PATH on Linux/Unix</a> but I had an error message saying <code>no such file and directory</code>, so I thought I could try   <code>~/.bash_profile</code> instead of <code>~/.profile</code> but it did not work.</p>
  <p>Second, I found this solution <a href="https://stackoverflow.com/questions/460835/how-to-set-the-path-as-used-by-applications-in-os-x">How to set the $PATH as used by applications in os x</a> , which advises to make changes in</p>
  <blockquote>
  <p>~/.MacOSX/environment.plist</p>
  </blockquote>
  <p>but again I had <code>no such file and directory</code> error.</p>
  <p>I need a way to set these variables such that it won't require setting them again and again each time I open a new terminal session.</p>