Here's what I did (your paths with almost certainly vary):
- Create a new tab in Console with the following values:
- Title:
Git Bash
- Icon:
C:\Program Files\Git\etc\git.ico
- Shell
"C:\Program Files\Git\bin\sh.exe" --login -i
- Startup dir:
%HOMEDRIVE%%HOMEPATH%
- Create a new key in
HKEY_CLASSES_ROOT\Directory\shell\ called git_shell2 with a data value of Git Console Here
- Create a new key in
HKEY_CLASSES_ROOT\Directory\shell\git_shell2\ called command 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.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\git_shell2]
@="Git Console Here"
[HKEY_CLASSES_ROOT\Directory\shell\git_shell2\command]
@="\"C:\\Users\\charlesr\\My Dropbox\\Software\\Console2\\Console.exe\" -t \"Git Bash\" -d \"%1\""