title: PATH vs symlink subl: command not found
body: <p>When I <code>echo $PATH</code> on my mac I see:</p>
  
  <pre><code>/Users/me/.nvm/versions/node/v8.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin
  </code></pre>
  
  <p>Running <code>code</code> for opening a project with the vscode editor works, however <code>subl</code> gets the error <code>-bash: subl: command not found</code>. I noticed online a lot of people suggest symlink to <code>usr/local/bin</code> however I don't understand why that is necessary if it is already in my PATH. </p>
  
  <p>If I <code>cd /Applications/Sublime\ Text.app/Contents/SharedSupport/bin</code> I see <code>subl</code> exists there. </p>
  
  <p>If I run the following in my terminal <code>/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl</code> then sublime opens. However if I try to run subl directly from inside that bin then it does not open. </p>
  
  <p><code>subl</code> inside bin has the following permissions: <code>-rwxr-xr-</code></p>
  
  <p>I'm adding this to my path by adding this to my <code>.bashrc</code>:</p>
  
  <pre><code>export PATH="$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/"
  </code></pre>
  
  <p>I'm not really sure why it's not opening with the command <code>subl</code> and I don't understand why I would need to link if it is in my PATH. I'd prefer to fix it with a solution I understand.</p>