2/19/2015 Update: I’ve decided that it would be good to propose the change described in this post to the msysgit project. And today it was accepted and merged. It took me only 7 months to come up with idea that the change described below could be included into the official release of the software that I’m using on a daily basis :)
There was only one problem with my tasks setup - I wanted to launch Portable Git which is a part of GitHub for Windows installation inside ConEmu. But launching the
git-cmd.bat from ConEmu will create a new window.
As you may know Portable Git binaries are located in
%LOCALAPPDATA%\GitHub\PortableGit_054f2e797ebafd44a30203088cd3d58663c627ef\Note that the last part of the directory name is a version string so it could change in future.
The problem lies in the last line of the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
To fix the issue replace last line
@start %COMSPEC% with
This change will not break the existing “Open in Git Shell” context action in GitHub application GUI.
The difference between
call commands is that
call runs the batch script inside the same shell instance while
start creates a new instance. Here is a little fragment from
1 2 3 4 5
That’s it! Now following task for ConEmu will work as expected:
*cmd /k Title Git & "%LOCALAPPDATA%\GitHub\PortableGit_054f2e797ebafd44a30203088cd3d58663c627ef\git-cmd.bat"