Gangmax Blog

Launch Sublime Text from Command Line On Mac

From here.

What you need to do is to create a symbolic link:

1
2
3
4
# Run the following command to craete the symbolic link:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
# Run it.
sublime ~/Documents/test.txt

Comments