👈 back home

Create Sublime Symlink (shortcut command)

Written by andy onJanuary 22, 2015

Create subl Sublime Text as editor run from terminal

OSX Yosemite

$ sudo ln -s /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl /bin/subl 

Because in OSX El Capitan you are not allowed to write to /usr/bin, you need to write to /usr/local/bin

OSX El Capitan

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

To use it

$ subl name_file.txt