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 ?
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.
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.
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.
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.
You can install the shell support in TextMate menu by the following steps:
Textmate -> Preference -> Terminal -> Install
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').
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With