Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 612
K M Rakibul Islam Avatar asked Aug 15 '13 16:08

K M Rakibul Islam


People also ask

Why is command not working Mac?

The four most common reasons why you may see the “command not found” message in the Mac command line are as follows: the command syntax was entered incorrectly. the command you are attempting to run is not installed. the command was deleted, or, worse, the system directory was deleted or modified.

How do I enable command prompt on Mac?

On your Mac, do one of the following: Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal. In the Finder , open the /Applications/Utilities folder, then double-click Terminal.

Do Linux Terminal commands work on Mac?

But unlike Linux, macOS does not support virtual terminals by default. Instead, you can use the Terminal app (/Applications/Utilities/Terminal) to obtain a command line terminal and BASH shell.

What is mate command?

The mate command is located inside the TextMate application bundle and it is recommended that you create a symbolic link which points to the command (rather than “install” it), so that if the command is updated in the future, you will not need to reinstall the updated command.


2 Answers

You can install the shell support in TextMate menu by the following steps:

Textmate -> Preference -> Terminal -> Install

enter image description here

like image 191
William Hu Avatar answered Sep 19 '22 07:09

William Hu


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').

like image 24
appdroid Avatar answered Sep 18 '22 07:09

appdroid