Launch sublime in terminal

I don’t know why this symlink is not set up after installing sublime. (Textmate does it!)

You can simply do this:

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

Then you should be good to go. Try typing sublime in your terminal and sublime should be launched. If not, add this line to your ~/.bash_profile file.

export PATH=$PATH:/usr/local/bin

Or you can mess with your own $PATH variable to make it right for you.

Then next time, when you need to open up a project in a certain directory, just cd to that directory, then do “sublime .

Ref: https://gist.github.com/olivierlacan/1195304

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s