Andy
A-ndy.dev

A-ndy.dev

Create Sublime Symlink (shortcut command)

Andy's photo
Andy
·Jan 22, 2015·

1 min read

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
 
Share this