Sunday, April 5, 2015

Open Sublime in Terminal for Mac OSX

Even though we install Sublime 2 or 3 using a DMG file in Mac OSX, we cannot open Sublime using the terminal. To fix this, run the following...

For Sublime Text 2

cd /usr/local/bin
ln -s "/Applications/Sublime Text" subl

For Sublime Text 3

cd /usr/local/bin
ln -s "/Applications/Sublime" subl

To open Sublime in terminal, use the following command.

To see usages of subl command

subl --help



No comments:

Post a Comment