Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Can't use Sublime Text 2 from Mac terminal

Hi, I'm trying to follow the instructions from here.

So I typed the following in terminal:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Terminal tells me:
ln: /Users/2013/bin/subl: File exists

I then type:
subl --help

And it responds with:
-bash: subl: command not found

I tried a few things before the above steps and I'm not sure if what I tried is causing the above to not work. Here's what I did:

At first I was following the wrong docs and was running this command instead:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

I also did this:
mkdir ~/bin

because it was giving me a no such file or directory error- I think it went like this:
/Users/User/bin/subl: No such file or directory

I think I tried all the suggestions here.

I also tried Dustin’s code from here, which was this:

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

I'm not sure what else to try. Can anyone help please?

2 Answers

I followed this tutorial and it worked! :)

I wonder if there's a reason why you're still using Sublime 2 but not 3?

I thought version 3 was still unstable, and learning new versions can take time, and I've been busy learning other technologies at Treehouse, and version 2 has been working wonderfully for me. Should I be upgrading in a hurry?

3 has been extremely stable. Also, no major change you'd notice upgrading from 2 to 3, aside from faster speed & python3, I think.

ok, thank you!