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 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