Mac OSX: Run Sublime from your terminal

Posted on in Environment Sublime Text

Wouldn't it be cool to navigate within your terminal to your project folder and then run sublime with the following command:

subl . 

It's easy to setup...

Add the bin folder to your paths:
First open your ~/.bash_profile file. (it's hidden so you will need to enable hidden folders.)
Add the following line:

export PATH=~/bin:$PATH

Create a symlink

sudo ln -s "/Applications/Sublime Text" ~/bin/subl

Please note the first path, is the path to your Sublime Text 2 app. If you moved your app to a different folder you will need to modify this line.
The second path is the place where you will create your symlink. This is the ~/bin folder.
Since you've added the bin folder to your classpaths; you can now easily run the subl . commands.


  1. mumiyo says on
    September 12, 2013 at 4:32 am

    It¡¦s really a cool and useful piece of info. I am glad that you just shared this useful info with us. Please stay us informed like this. Thank you for sharing.

  2. Virgen Tolchin says on
    March 15, 2014 at 5:57 am

    I like this post, enjoyed this one thankyou for posting . If you have more time, please visit my site:

  3. Sienna says on
    March 25, 2014 at 5:43 pm

    May I simply just say what a relief to uncover someone that actually understands what they are talking about on the web.
    You actually understand how to bring a problem to
    light and make it important. A lot more people must check this out and understand this side of
    the story. I can’t believe you aren’t more popular because you certainly possess the gift.

  4. Herman says on
    March 25, 2014 at 11:42 pm

    Wow, fantastic blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your web site is great, let alone the content!

  5. Lee says on
    March 26, 2014 at 8:46 am

    Thank you Sienna and Herman. Actually I have taken a break of blogging, since I have been busy with writing the book. – Now that the book is in production I have all the time for blogging again. Hence why I created this new layout. Will try to add new content these weeks.

  6. downloading free says on
    April 24, 2014 at 11:42 pm

    Quality content is the main to interest the users to
    go to see the web page, that’s what this website iss providing.

  7. What Men Secretly says on
    April 29, 2014 at 5:45 pm

    You should take part in a contest for one
    of the highest quality blogs on the net. I will recommend this web site!

  8. Cecile Vandevelde says on
    May 19, 2014 at 3:08 am

    you’re really a excellent webmaster. The web site loading speed is amazing. It sort of feels that you are doing any distinctive trick. Also, The contents are masterpiece. you have done a great process in this matter!

  9. uberstrike says on
    May 28, 2014 at 2:05 pm

    This post is worth everyone’s attention. How can I find
    out more?

  10. Any says on
    December 8, 2014 at 11:43 am

    Helpful info. Fortunate me I found your website accidentally,and I’m stunned why this coincidence did not happened in advance! I bookmarked it.

Post a Comment

Your email is never published nor shared.
Required fields are marked *