Is there a way to stop “Ctrl+C” from closing a tab when running Git Bash in Console2?
Try the following
- "cmd.exe /c" in your command is superfluous. Remove it completely.
- Update to the latest git-for-windows. It has git-cmd.exe wrapper. To run it properly there are switches, something like "git-cmd.exe --cmd=/use/bin/sh.exe"
- Not sure about Console... Check your associated action for Ctrl+C hotkey. It may be configured improperly.
- Why do not give a try to ConEmu?
This worked for me:
Shell: C:\Windows\SysWOW64\cmd.exe /c "C:\Program Files\Git\usr\bin\bash.exe" --login -i
The bash.exe inside \Git\usr\bin seems to handle Ctrl-C normally.
*64bit Win7 using Git for Windows 2.6.1