Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

Monday, 8 December 2014

GitBash as ConEmu task





The current GitBash installs with the shortcut target:


%USERPROFILE%\AppData\Local\GitHub\GitHub.appref-ms --open-shell

The appref-ms file, is a sort of link variant and unsurprisingly, using it as a parameter to ConEmu task command, doesn't work.

To find out what is actually being invoked when when running Git Shell we use Process Explorer  which shows a bash.exe process with the command line :

"%USERPROFILE%\AppData\Local\GitHub\PortableGit_da44d00daa738db527315557813e7b68709ed0a1\bin\bash.exe" --login -i

This looks similar to the standard Cygwin bash invocation, we create a Git task in ConEmu (Win-Alt-P) and use the invocation  with additional parameters to ConEmu specifying a new console and a color scheme:

"%USERPROFILE%\AppData\Local\GitHub\PortableGit_da44d00daa738db527315557813e7b68709ed0a1\bin\bash.exe" --login -i -new_console:P:"^<Tomorrow Night Bright>^"
















and that's it.