title: How to restore .bash_profile on a mac? None of my unix terminal are working
body: <p>I added something to my bash_profile while trying to add Playframework to my path and something got messed up badly.</p>
  
  <p>I added the following line to my .bash_profile</p>
  
  <pre><code>export PATH=$PATH:the path to my play excitable 
  </code></pre>
  
  <p>then I saved everything and restarted my terminal. I can no longer do anything from my terminal. I can't cd into any directory, I can no longer find java, I can't open vi or nano.
  I found <a href="https://superuser.com/questions/498312/how-to-reset-bash-on-mac-osx-bash-profile-corrupted-and-bash-no-longer-works">this</a> thread on SuperUser that suggested opening a different terminal and changing the bash profile.</p>
  
  <p>I tried opening bash by typing</p>
  
  <pre><code>/bin/bash
  </code></pre>
  
  <p>and I was successfully able to open another terminal but I still don't have access to any of the regular unix commands. I still wasn't able to open vi or nano to remove the line that is causing the problem.</p>
  
  <p>I tried downloading a <a href="http://www.iterm2.com/#/section/downloads" rel="noreferrer">new terminal application</a> without any luck.</p>
  
  <p>I tried turning on hidden files so that I can just change the file with a text editor by running the following command:</p>
  
  <pre><code>defaults write com.apple.finder AppleShowAllFiles TRUE
  </code></pre>
  
  <p>but since my terminal isn't working that didn't work either.</p>
  
  <p>How can I fix my computer.</p>