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

Ruby ActiveRecord Basics Migrations and Relationships Migrations

Can't open the new biller application in Sublime Text 2, using the subl . command in the terminal

I know you can manually open the biller application in Sublime Text 2 but does anyone know why I can't get the text editor to open the application via the subl . command in the terminal?

I keep getting this as a response

-bash: subl: command not found

I tried it 3 different ways, with, without spaces, with underscore but I got the same response every time:

No such file or directory

3 Answers

I guess you might be using the Sublime Text Version 3, not version 2.

Try this command

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

And restart the Terminal.

Actually, I'm using Sublime Text 2

A little sanity check here, are you using a Mac?

Yes, I am using a Mac.

In that Case, I'd really suggest that you go upgrade your Sublime Text to version 3, then give the command another try. Sublime 3 is a mature, stable, and more feature-rich release, there's really no benefits for staying in version 2.

Ok, I'll give that a try. Thanks, William.

Run this line of command in your Terminal

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

Then try use the subl again.

Hi William,

Are there underscores or spaces between the Sublime Text 2 part or not?

kabir

Nope

But be sure to restart the terminal

I ran it again with spaces and restarted the terminal but still got the same response

-bash: subl: command not found

Maybe the subl was moved to a diff location in the newer version of sublime. Let me try that when I return home, will keep you posted

Ok thanks, William.

Check out this link https://gist.github.com/artero/1236170 You can alternatively use an editor called Atom that will create terminal symlinks for you. You just have to turn that option on in preferences.