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

kabir k
PLUS
kabir k
Courses Plus Student 18,036 Points

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
kabir k
kabir k
Courses Plus Student 18,036 Points

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

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

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.

William Li
William Li
Courses Plus Student 26,868 Points

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

William Li
William Li
Courses Plus Student 26,868 Points

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.

kabir k
kabir k
Courses Plus Student 18,036 Points

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

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

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.

kabir k
kabir k
Courses Plus Student 18,036 Points

Hi William,

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

kabir

kabir k
kabir k
Courses Plus Student 18,036 Points

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

-bash: subl: command not found

William Li
William Li
Courses Plus Student 26,868 Points

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

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.