This article describes how to setup Git-Bash as its own tab inside of ConsoleZ, the command prompt replacement application.
So here I go again. In using Chocolatey, the package manager for Windows, to install Console2 on my work machine I somehow ended up with ConsoleZ which I guess is the latest iteration. I make this assumption because the menus are very similar, particularly the settings dialogs, etc. I really like the look and feel changes in ConsoleZ, and there are some new tab related features as well. It looks like Console2 is no longer maintained and so this fork is now the go to console replacement. No problem except this means I needed to get Git Bash working again in its own tab, within ConsoleZ.
I tried my existing settings but they did not work, which means that my previous article on the subject, which is by far the most viewed item on my quiet little blog, is no longer good. Well, at least it doesn’t work for ConsoleZ, only the older Console2 (which by the way, is still available if you want it, though no longer maintained). So, I needed to perform some trial and error to get it working again.
Figure 1: Properties for Git-Bash shortcut in Start Menu
I began with the Properties dialog for the Git-Bash Start Menu shortcut, which led me to its program folder. For the record I did try simply copying and pasting the Target value into the new Tab’s “Shell” setting, but that didn’t work. It opened Git-Bash in its normal window after an error dialog informed me that it was not a console application.
Once the easy guess failed, I tried a few more guesses until I got it right. I ended up looking in the /bin directory inside the Git program folder, which seemed a likely spot for what I wanted. In there were only three choices, so finding the right one wasn’t that hard. It was much easier than figuring this out the first time for Console2.
Figure 2: Tab Settings for Git-Bash
So, without further malarkey, here is the correct settings for a Git-Bash tab in ConsoleZ. Essentially just the Shell value this time. The extras required in previous version are not needed here, this works fine. You can see me at work in the background in a repository. The first tab is a regular PS prompt but the foreground one is our Git-Bash prompt, alive and well in the latest ConsoleZ!
Much thanks to the maintainers of ConsoleZ:
Look at their profiles and click on the ConsoleZ wiki for the project’s home!