Lately I have been doing more stuff on the Console as getting to Ruby and messing a bit with Git and stuff.

Generally speaking the default Windows Command Prompt is really fine for my needs, but I sure would love to see more possibilities. PowerShell was a great scripting / tooling addition but not much of “Editor” / “Environment” improvement. PowerShell ISE (integrated Scripting Environment) is really so nice and powerful, but it doesn’t feel exactly like my usual Console. I tried Console2 and was really impressed with how similar and different it is in the same time.

Surely, it didn’t mean I have to lose PowerShell features in there!

Get Console2

Just grab it from http://sourceforge.net/projects/console/files/console-devel/.

By the time of writing v 2.0 was the latest. I just went to that folder and got the latest Zip in there. Yeah. No install, just a Zip file, so, you may need to make a shortcut for it on your own and / or place it in somewhere that’s already in your Windows ENVIRONMENT variables.

Find the Path To PowerShell

The way I did it was go to Start menu, type in PowerShell in the search box, and right click the PowerShell icon, and choose Properties.

image

Then as you saw me do in many other posts, just copy the “Target” value:

image

Keep that value somewhere. We’ll need it.

Configure Console2

Now open Console2, Edit menu, “Settings…”

image

Then in the Settings “Console” section, set the value for “Shell” to the value you copied in previous steps.

image

Press OK, then the very left icon in toolbar to get new tab.

image

We get our PowerShell prompt as expected!

 

Pretty easy, ha?

 

P.S.

I realize the default font doesn’t look too good. In Settings, you can go to “Appearance” section, Font –> Name, press the “…” button next to that (not the “Size” text box in there. It will not work). and change the font name and size in there.

- - -
P.S. If you liked this post, please help me out by checking the ads on the site and clicking through the one you like. Also, I'm giving away a free newsletter for web developers that you can sign up for from here.

, , ,
  • http://aaron-powell.com Aaron Powell

    Have you been able to get the Powershell copy/ paste experience working? That’s my only problem with Console2 is how it’s copy/ paste works (I haven’t worked out how to copy yet!)

  • Mohamed Meligy

    Yeah, this was a bit tricky.

    It’s so easy to copy / paste selection, but it was not obvious how to make a selection at all!

    I went to Settings -> Hotkeys -> Mouse and found the line that matters was:

    Select Text -> Left + Shift

    So, yeah, if you press Shift, and hold the left mouse button, you can select text, and then copy normally.

    Works with PowerShell setting on as well.

  • SimonP

    Hi,

    I’m really liking Console2, but I wonder if you’ve experienced the same quirky behaviour as me when running executables?

    Example:

    On Windows 7, if I open a regular, non-Console2 window and run the Snipping Tool using the following command, everything works fine and the Snipping Tool opens:

    c:windowsSystem32SnippingTool.exe

    However, when I run exactly the same command from the Console2 window, I receive “c:\windows\System32\SnippingTool.exe’ is not recognized as an internal or external command, operable program or batch file.”

    Any ideas what’s going on here? It’s the only thing stopping me from adopting Console2 as my cmd replacement.

    (Incidentally, I tried specifying Powershell and cmd.exe in the Shell settings, but it made no difference).

    Thanks!

  • SimonP

    Aha…

    …just to answer my own question… I’ve just realised that there’s a 64 bit version of Console2. Downloading it has fixed my ‘strange quirk’ mentioned in the comment above.

    Cheers.

  • Torus Equation

    Aaron Powell try this link.. i think it may help about cutting and pasting

    http://www.kevwebdev.com/blog/in-search-of-a-better-windows-console-using-ansicon-console2-and-git-bash.html

    or if that link changes or is deleted… just open your command prompt from the run terminal (this is for Win xp 32 bit systems),,,,,,,,

    right-click on the title bar and select Defaults………
    click the Options tab and check-off or enable QuickEdit Mode which will allow you to highlight text in the prompt using the mouse, and uncheck Insert Mode……….

    Once QuickEdit Mode is enabled you will be able to copy selected text using the enter key and paste using right-click. Note that the select mode is a bit stange as it creates a box and doesn’t really allow you to select all of one line and just the start of the next.
    hope that helps cheers