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 trialkabir k
Courses Plus Student 18,036 PointsCan'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
3 Answers
William Li
Courses Plus Student 26,868 PointsI 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.
kabir k
Courses Plus Student 18,036 PointsActually, I'm using Sublime Text 2
William Li
Courses Plus Student 26,868 PointsA little sanity check here, are you using a Mac?
kabir k
Courses Plus Student 18,036 PointsYes, I am using a Mac.
William Li
Courses Plus Student 26,868 PointsIn 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
Courses Plus Student 18,036 PointsOk, I'll give that a try. Thanks, William.
William Li
Courses Plus Student 26,868 PointsRun 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
Courses Plus Student 18,036 PointsHi William,
Are there underscores or spaces between the Sublime Text 2 part or not?
kabir
William Li
Courses Plus Student 26,868 PointsBut be sure to restart the terminal
kabir k
Courses Plus Student 18,036 PointsI ran it again with spaces and restarted the terminal but still got the same response
-bash: subl: command not found
William Li
Courses Plus Student 26,868 PointsMaybe 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
kabir k
Courses Plus Student 18,036 PointsOk thanks, William.
blakeyoder22
1,647 PointsCheck 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.
kabir k
Courses Plus Student 18,036 Pointskabir k
Courses Plus Student 18,036 PointsI tried it 3 different ways, with, without spaces, with underscore but I got the same response every time:
No such file or directory