title: Problems using subl command in terminal: "Command not found" & "No such file or directory"
body: <p>I want to apologize in advance that this is a newbie question! I've spent the last 2 hours trying to find a solution.</p>
  
  <p>I have two problems (I'm sure related). </p>
  
  <p><strong>Background:</strong> </p>
  
  <p>This is what my $PATH looks like:</p>
  
  <p>/Users/Sponsi/.rvm/gems/ruby-1.9.3-p194/bin:/Users/Sponsi/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/Sponsi/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/Sponsi/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin</p>
  
  <p><strong>Problem #1</strong></p>
  
  <p>I am trying to use the command-line command "subl" to launch Sublime Text 2 on OSX.</p>
  
  <p>I entered the following command:
  "<code>ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl</code></p>
  
  <p>It only halfway worked - when I enter "subl" I get "Command not found". But when I re-enter the command above it says "Already exists."</p>
  
  <p>I searched online and found a (somewhat) fix. I added the following to my .bashrc:</p>
  
  <pre><code>echo 'export PATH="./bin:$PATH"' &gt;&gt; ~/.bashrc 
  source ~/.bashrc
  </code></pre>
  
  <p>Using the command "subl" does work but only temporarily. If I exit terminal or switch to another directory it stops working (bringing me into problem #2, see below.)</p>
  
  <p><strong>Problem # 2:</strong></p>
  
  <p>When I try to pull up a file under another directory using the command "subl" I get "-bash: ./bin/subl: No such file or directory" I confirmed the file I want to edit does exist.</p>
  
  <p>BTW, I am following the Ruby tutorial found @ <a href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book">http://ruby.railstutorial.org/ruby-on-rails-tutorial-book</a></p>
  
  <p>Thank you so much for your time!</p>