Launch Sublime Text 2 and 3 from the Terminal

Run this line for Sublime Text 2:

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

Use like:

subl2 .

Run this line for Sublime Text 3:

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

Use like:

subl3 .

 

Leave a Reply