mate . command is not working in MAC OSX

K M Rakibul Islam picture K M Rakibul Islam · Aug 15, 2013 · Viewed 13.8k times · Source

I am trying to open the content of a directory using text mate by mate . command.

But, I am getting the message :

-bash: mate: command not found

I tried the following command to fix it :

ln -s /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate /usr/local/bin/mate

but, unfortunately this did not do the trick for me. It gives me the message :

ln: /usr/local/bin/mate: File exists

How to fix this problem ?

Answer

appdroid picture appdroid · Mar 11, 2014

For me TextMate shell command was not installed that is why i was getting this error. To fix this, go to TextMate preferences, click on Terminal icon then click on 'install' shell command if it's not already installed (if it's already installed you will get option to 'uninstall').