Console2 Tabs for GitBash, Cygwin, Powershell & More

I recently rebuilt my work machine, with a new SSD.  But that meant I had to setup Console2 again…
I recently rebuilt my work machine.  I have had my Dell Precision M4600 for almost two years now and it has served me well.  I started with 8gb of RAM and have upgraded to 16gb.  Despite the increase in ram though I had started to notice a slow down in performance, partly due to my frequent use of Visual Studio 2012 and the new Office 365 suite.  These newer apps use a lot of memory, a whole lot.  VS 2012 can easily use a gb of ram per instance if left open too long.  So I decided to ask for a hard drive upgrade and lucky me I received approval.  I promptly ordered a 256 gb Sandisk Ultra Plus SSD and eagerly awaited its arrival.

The drive arrived and aside from a slight snafu that cost me a 20 dollar part from ebay (I broke off the HD cover plate when removing the factory HD) the installation was fairly simple.  I cloned an M4600 Windows 7 x64 image our IT Manager gave me and was up and running in a couple of hours.  I did have to wait until the next morning to re-join the domain, but then I was off and running.  And I mean running!  The new drive is wicked fast.

I installed VS 2012 in about an hour (instead of the three it took when I first started) as well as Office 365 and a host of smaller utilities.  A small note about that, I cannot recommend enough the Chocolatey package manager for windows.  It was the first utility I installed and then I used it to install almost everything else, including things like:

  • 7zip
  • AutoHotKey
  • BeyondCompare 3
  • Calibre
  • Console2
  • DaemonToolsLite
  • Dropbox
  • Filezilla
  • Git
  • iTunes
  • GVim
  • Notepad++
  • Paint.Net
  • Python
  • SharpKeys  (I use this to map keys for my Apple Keyboard)
  • uTorrent
  • vlc
To get a list of all of the packages you have installed use the command:
cver all -localonly
I was continually amazed at how easy it was.  I would be working and realize, for instance, that I needed to add some annotations to a wireframe for some documentation for my latest feature task, but I hadn’t installed paint.net yet.  So, I hit Win-Key, then type in Console and hit enter.  Then at the command line, I tried:
cinst paint.net
And it just worked.  It would search the packages find it and install it.  Bam!  Then I could hit Win-Key again and type in paint and select Paint.Net and hit enter and be working.  Super cool and super easy.  I really can’t say how much time it saved me and also how much space it saved me because I didn’t have to go out and search for installers and download them and forget to delete them when I was done.  Thanks to Chocolatey my downloads directory is practically empty.

Console2 Setup

A new machine meant I had to do some reconfiguring of my utilities, especially the ones I use the most, like Console2, or just Console now.  I have previously published an article that contained my Console2 Setup and it has been quite a popular article, my most popular one on the site in fact.  And when I had to figure out how to do it all again I  thought a new article would be a good idea.  Especially because I have added even more tabs to this setup.
Console2 Tabs screenshot
As you can see I have the following tabs available:
  • Windows Cmd Prompt
  • Visual Studio Cmd Prompt
  • Git Bash
  • Cygwin
  • Powershell
I was able to salvage some of my settings from my old hard drive by locating and copying the settings file from Console2 which for me was located in \AppData\Roaming\Console\console.xml but on my new build I am using a portable install of Console so that my settings file is in the Console2 directory.

Details

Here are the specifics.  I am assuming that you know enough about Console to open the settings and add a new tab and get to this screen:
Console2 Settings Screenshot
And here is the goodies!  A detailed list of the settings for each tab that work for me.  I add that caveat because due to the differences in versions of Windows and install locations I cannot swear that my settings will work for you, but you should be able to use my settings to figure out how to make yours work…
Visual Studio Cmd Prompt
  1. Title:  VS Cmd
  2. Icon:  C:\Users\jgilliland\bin\Console2\vscommand.ico    (from Scott H.)
  3. Shell: %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
  4. Startup dir:
Git Bash Shell
  1. Title:  Git Bash
  2. Icon:  C:\Program Files (x86)\Git\etc\git.ico
  3. Shell:  C:\Program Files (x86)\Git\bin\sh.exe --login –i
  4. Startup dir:  %HOMEDRIVE%%HOMEPATH%
Cygwin Shell
  1. Title:  Cygwin
  2. Icon:  C:\users\jgilliland\bin\Cygwin\Cygwin.ico
  3. Shell:  C:\users\jgilliland\bin\Cygwin\Cygwin.bat
  4. Startup dir: 
Powershell
  1. Title:  Powershell
  2. Icon:  C:\Users\jgilliland\bin\Console2\vspowershell.ico  (from Scott H.)
  3. Shell: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
  4. Startup dir:

Conclusion

So there you have it!  My new drive with all of my utilities, mostly portable installs this time, so that next time they can just be moved with me.  In conclusion I am super stoked about my new ssd and I cannot recommend using Chocolatey enough for your windows package management needs.  And of course you now have all of the details of my Console2 setup.  Enjoy!