Home:ALL Converter>Opening up files with sublime text 3 in git bash in Windows

Opening up files with sublime text 3 in git bash in Windows

Ask Time:2019-05-30T19:10:32         Author:H.Jeong

Json Formatter

I want to open files with Sublime text 3. Is there a way that I can permanently set Sublime text as the default editor in git bash?

I tried the following code:

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

and it worked. But, when I closed the Git bash and reopen it later, the command subl didn't work and I had to type in the code again.

Author:H.Jeong,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56377137/opening-up-files-with-sublime-text-3-in-git-bash-in-windows
yy