Home:ALL Converter>Sublime text 2, windows, bash/cygwin instead of cmd

Sublime text 2, windows, bash/cygwin instead of cmd

Ask Time:2012-08-04T22:30:31         Author:krasulya

Json Formatter

I have a problem using Git plugin for Sublime text. For every git command I get an error: "Parameter format not correct". Same happens when I use git in cmd. But in cygwin/bash there are no any problems.

Obviously, Sublime text using windows cmd.exe for executing git commands. So I need to force Sublime to use cygwin/bash.

How can I do it? Or are there any other solutions?

Thanks!

Author:krasulya,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/11809382/sublime-text-2-windows-bash-cygwin-instead-of-cmd
Maximus :

I dont use Sublime, so can't be sure that there is no option for proper configuration of plugin. May be there is one.\n\nBut, you can try to force use bash instead of cmd via redefining COMSPEC environment variable (thought, running Sublime from batch file). For example\n\nSET COMSPEC=c:\\git\\bin\\bash.exe --login -i\nstart sublime.exe\n\n\nOf course, you may set COMSPEC in system properties (glabally), but I don't recommend this, cause of this may affect other programs...",
2012-08-04T18:52:30
yy