Search code examples
macoscommand-linesublimetext3osx-elcapitan

How to add Sublime Text 3 command line support for Mac OS X El Capitan?


I am trying to get to work again Sublime Text 3 on El Capitan - OSX.

I already created the symlink with this

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

I used to run Sublime like this

~/myproject/subl .

Now if I run the same line Sublime opens, but not the folder where I am stepped at. In other words, it opens Sublime, but the dot parameter does not seem to do anything.

Here is an image to show my problem

enter image description here

Any idea where it could be the problem?

Thank you


Solution

  • As mentioned in the comments, ~/myproject/subl likely does not exist, so your command will fail. To open ~/myproject in Sublime, simply enter

    subl ~/myproject
    

    and the folder will open. If you're already in ~/myproject, subl . will do the same thing.