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 trialVinh Thanh Vu
Courses Plus Student 4,324 PointsWorking with Sass Libraries - "subl ." command not found
Hello all:
At 4:34 in the video, the instructor, Hamption Catlin said, "So i'm going to use Sublime's project interface...you're not familiar with that." Then continue with his lesson without explaining the "subl ." command. Well, he was right because i didn't get any farther than that.
Can someone please explain to me why isn't the terminal taking the "subl ." command? Below is what I wrote:
Vinhs-MacBook-Pro:Desktop vvu$ sudo gem install bourbon Successfully installed bourbon-3.1.8 Parsing documentation for bourbon-3.1.8 1 gem installed Vinhs-MacBook-Pro:Desktop vvu$ bourbon install Bourbon files installed to bourbon/ Vinhs-MacBook-Pro:Desktop vvu$ touch main.scss Vinhs-MacBook-Pro:Desktop vvu$ subl . -bash: subl: command not found
Thanks! :)
2 Answers
Paul Graham
1,396 PointsSo what it's saying is that the shell can't find the "subl" command, likely because the command is linked incorrectly or not in your $PATH. Please review the Sublime Text article about this http://www.sublimetext.com/docs/2/osx_command_line.html
Vinh Thanh Vu
Courses Plus Student 4,324 PointsThank you, Paul
You were right that I didn't have a ~/bin directory in my path, so I googled, which took me to stackoverflow.com for the next step.
Just in case if anybody else run into this same problem with adding ~/bin to your path. Here's the link:
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 Pointssubl will launch sublime from mac prompt