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

Open file on console - I am using Sublime text

Hey guys, I have used Ruby on Rails a few years ago...I'm just brushing up on a lot of my syntax and setting up my environment. I am using sublime text btw, on my console I forgot how to open up my file, any help would be greatly appreciated thanks!

1 Answer

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

If I'm in the directory of the file and just type

subl index.html

sublime text opens with that file for me. Of course subl is in my executable path (/usr/bin) for me.