Launching Sublime Text 3 from the Command Line in OSX Mavericks

After installing Sublime Text 3, you may want to open a file / folder directly from the command line by using the subl alias. To do this, simply add a symbolic link to the subl after making sure that you PATH has ~/bin.

> printenv | grep bin
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Create the symbolic link

sudo ln -sf "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl

Another handy trick to know about sublime text is that you can open folders directly from the command line by navigating to the respective folder and calling

subl .

Enjoy!

– Ackshaey

www.ackshaey.com

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s