I'm trying to start git bash with environment variables from vcvarsall.bat using ConEmu.
Currently my startup task is just "C:\Program Files\Git\bin\vc14.bat".
The bat file looks as following:
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
cls
"C:\Program Files\Git\bin\sh.exe" --login -i
The problem is that when I close ConEmu I get this message
Is there any way to do what my bat file is doing from ConEmu?

C:\Program Files\Git\usr\bin\sh.exeinstead ofC:\Program Files\Git\bin\sh.exebecauseGit\bin\sh.exeis just a wrapper.sh.exeasynchronously, because when you run it from cmd's batch,cmd.exewaits for forsh.execompletion, and ConEmu sees thecmd.exein the console process, which rises "Incomplete operations" warning.Correct batch: