Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Foundations Ruby Basics IRB and Your First Ruby Program

Diego DeSouz
Diego DeSouz
2,379 Points

Hey Jason, Im new to this and I'm having a hard time opening textmate using mate from my terminal in mac.

I tried doing everything you did from the beginning and since i had ruby and homebrew and rvm all installed i don't know if i did anything incorrect from start. I even thought about reformatting my mac and do everything from scratch again. please help

3 Answers

Sri Sreedharan
Sri Sreedharan
5,526 Points

What happens when you type : 'mate -h' in terminal?

Diego DeSouz
Diego DeSouz
2,379 Points

it says -bash: mate: command not found

Sri Sreedharan
Sri Sreedharan
5,526 Points

Go to 'preferences' in Textmate

Click 'Terminal'

 Follow those instructions: 
     Open the bashrc file in textedit: open -e .bashrc 
     Add this line to it: export EDITOR="/usr/local/bin/mate -w"
     Save it.

Click Install in the 'Terminal' tab

Hope that helps!

So helpful!

Diego DeSouz
Diego DeSouz
2,379 Points

wow that amazing. would've never thought of going to preferences at textmate. Thank you very much. I certainly have to learn the terminal a little better. it's a whole other world for me. thanks again