Use Sublime 3 from Command Line – Terminal – Mac

To create a short cut or symbolic link from the Sublime executable to the /usr/local/bin/ folder, type the following command.

$ ln -s “/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl” /usr/local/bin/subl

The shortcut name at the end of /usr/local/bin/ can be anything you want. Sublime itself, uses subl, on my machine the shortcut is sublime.

After this is done, issuing the following command from the command line will open the current folder in sublime.

$ sublime .

Leave a Reply

Your email address will not be published. Required fields are marked *