The idea is to create a symbolic link to the Sublime Text’s executable and put in the system’s path (execute “echo $PATH
” to see your’s). I used /usr/local/bin
:
GNU/Linux:
sudo ln -s /opt/sublime_text_2/sublime_text /usr/local/bin/sublime
Mac OS X:
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
Ref: https://www.sublimetext.com/docs/2/osx_command_line.html