mate . command is not working in MAC OSX
ln -s /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate /usr/local/bin/mate
worked for me after installing a MAC 10.9
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').