Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash: mate : command not found [closed]

Tags:

git

bash

git-bash

Hi I am learning how to use Github online via Udemy course. The instructor is accessing textmate editor using MAC OS. However I am trying to access textmate editor in Windows 10. When in Git bash I type

 mate file_name.txt

It throws an error

bash: mate: command not found.

How can this be resolved. Any help will be appreciated.

like image 319
noob Avatar asked Sep 14 '19 12:09

noob


People also ask

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.

What is mate command in Linux?

MATE (/ˈmɑːtɛ/) is a desktop environment composed of free and open-source software that runs on Linux, BSD, and illumos operating systems.


1 Answers

Text Mate works only in MAC OS and not in Windows. Sublime Text is a good editor to work with in Windows:

Steps to open Sublime Text from Git bash (after installing Sublime text first in system) are as follows:

In Git bash(you can open from Search) type the below 2 commands:

 alias subl="/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"

 subl . 

Instead of subl . you can also open a specific file or create a new file using below:

 subl Filename.txt

This command subl Filename.txt will create a new file with name as Filename.txt otherwise will open an existing file with the same name if the file already exists.

like image 171
noob Avatar answered Sep 24 '22 02:09

noob