The mate command was not found?

March, 31 2008 11:02 AM
Today I got my new macbook pro and have been migrating everything with very little problems. I did however get a little confused when I tried typing mate . in a directory and had expected textmate to open it up as a project. Instead, I got the following:

-bash: mate: command not found

WIth a little googling I found the solution:

ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate

Hopefully this gets googled so people will find the solution faster! :)
Comments:
me on April, 24 2008 04:06 AM
Hi. I found your page when I googled "mate command not found." Thanks a lot, but I needed to make a little change to get it to work for me. I upgraded to Leopard by choosing the "Archive and Install" option, and there wasn't a "bin" directory in my user home directory. I put the link in /usr/sbin like this: sudo ln -s /Applications/TextMate.app/Contents/Resources/mate /usr/sbin Thanks again for posting this so people can find it quickly.
lame ror/mate user on June, 12 2008 03:11 AM
symlink works great. I couldn't even find a mate file :D shame on me, I am lame ;] thx for this simple advise!
James Somers on June, 13 2008 01:13 AM
Sometimes the trivial solution (linking to the appropriate resource, something every unix hacker learnt in the mid '80s) works. I eagerly await the day you exceed $80 billable hours and get your name on the front page (http://engineyard.com/whoweare) of "your" company. (I'm just being an asshole because it's easy, and because it must be fun to get a non-spam comment on your blog!)

Send me some feedback!

Author:

Body:

About Lancelot Carlson and this blog

I created this blog from scratch using rails at a lightning quick pace. I figure, why not walk the walk and use my blog as a testing bed for all those ruby/rails ideologies I evangelize. Here you will find not only a digest of my learnings and brain dumps about topics ranging from Ruby to Nginx to Search Engine Optimization, but also a laboratory. This is a place where the mad programmer in me can test my crazy ideas and code in the wild and hopefully get enough interest to warrant some feedback.

Feel free to check out my working with rails profile for more information on me here.