title: sublime symlink disappeared after upgrading to El Capitan
body: <p>I have just upgraded to OS X El Capitan and <code>subl .</code> command stopped working with the <code>zsh: command not found: subl</code> error message. </p>
  
  <p>I have run the following command as suggested in other posts:</p>
  
  <pre><code>sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>ln: /usr/local/bin/subl: File exists
  </code></pre>
  
  <p>in the <strong>".bash_profile"</strong> as well as <strong>".zsh_profile"</strong> I have the following lines saved:</p>
  
  <pre><code>export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
  export EDITOR='subl -w'
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/subl
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>ln: /usr/bin/subl: Operation not permitted
  </code></pre>
  
  <p>Update:
  it seemed to work after running the following command: </p>
  
  <pre><code>alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
  </code></pre>
  
  <p>but as soon as I restart the terminal, <code>subl .</code> command stops working.</p>
  
  <p>Update2:
  after pasting the following line: <code>alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"</code> in the <code>subl ~/.zshrc</code>,  <code>subl .</code> command works even after restarting the terminal, but terminal seems to work slower than normal, and when you open relatively small folders with <code>subl .</code> command, at times it's taking ages to show the files...</p>
  
  <p>Final Update:
  After running <code>sudo rm /usr/local/bin/subl</code> followed by 
  <code>sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl</code> <strong>everything works perfectly</strong>, thanks to <strong>@chris</strong>.</p>