Quantcast
Channel: Programming and Technology » GNU/Linux
Viewing all articles
Browse latest Browse all 55

Open a file in Sublime Text 2 from command line

$
0
0

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

sublime_text_2

Ref: https://www.sublimetext.com/docs/2/osx_command_line.html


Viewing all articles
Browse latest Browse all 55

Latest Images

Trending Articles



Latest Images