Search code examples
macosterminaltextmate

mate . command is not working in MAC OSX


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 ?


Solution

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

    worked for me after installing a MAC 10.9