MSysGit installs a context menu item that opens a Git Bash prompt at the currently selected folder; however, this opens a cmd.exe window and I would like it to open in Console2 instead.
What modifications do I need to make to get this working?
Note, I have seen this related question, but the answer is outdated – MSysGit is now using a vba script to invoke the bash prompt. Plus it doesn't explicity state how to get things working with Console2.
Update: you may be interested in doing the same with ConEmu, a rather excellent successor to Console. See here: Git Bash Here in ConEmu
Best Answer
Here's what I did (your paths with almost certainly vary):
Git Bash
C:\Program Files\Git\etc\git.ico
"C:\Program Files\Git\bin\sh.exe" --login -i
%HOMEDRIVE%%HOMEPATH%
HKEY_CLASSES_ROOT\Directory\shell\
calledgit_shell2
with a data value ofGit Console Here
HKEY_CLASSES_ROOT\Directory\shell\git_shell2\
calledcommand
with a data value of"C:\Users\charlesr\My Dropbox\Software\Console2\Console.exe" -t "Git Bash" -d "%1"
This does the trick.
Instead of doing steps 2 and 3 above, you could just copy the following into a .reg file (modify the paths to suit your own config first) then import into the registry.