• Blog
  • About
  • Contact
linkedin
twitter

Blog Post

14
NOV
2006

Pimp my command prompt

tag : Utils & Tools
by : Christoph De Baene
comment : 0

One of the oldest and most basic programs is certainly the command prompt (cmd.exe). One thing is certain, you still can’t do without the command prompt, and certainly being a developer.  I came across a nice tool, called Console, which enhances the command prompt. I have been using it for a couple of months now, and I really like it.

One of the things you should really customize is your PROMPT. More information about changing the PROMPT can be found here. Having, for example, your current directory path on a separate line is really useful. You can customize it through the environment variable called PROMPT, like Scott is doing, but I prefer passing it as a parameter to the cmd.exe. This way I can easily copy the application and no reboot is required. This can be done by the /k argument of the cmd.exe.

Here is a snippet of my XML configuration file for Console.

[xml]
<tab title="Console">
<console shell="cmd /k PROMPT $p$_$+$g" init_dir=""/>
<cursor style="11" r="255" g="255" b="255"/>
<background type="2" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="190" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="cmd">
<console shell="cmd.exe /k PROMPT $p$_$+$g" init_dir=""/>
<cursor style="11" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="VS.NET 2005">
<console shell="cmd /k PROMPT $p$_$+$g &amp;&amp; C:\PROGRA~1\MID05A~1\VC\vcvarsall.bat" init_dir=""/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="2" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="188" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="PowerShell">
<console shell="C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" init_dir=""/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="2" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="189" r="0" g="0" b="0"/>
</image>
</background>
</tab>
[/xml]

This is the result in Console

About the Author

Social Share

    Leave a Reply Cancel reply

    You must be logged in to post a comment.

    Tag cloud

    .NET SDK Ajax Architecture ASP.NET ASP.NET Web API Code Generation Components Events Forms Hardware Modeling Neo4j Patterns & Practices Personal Roslyn Services Silverlight SQL Server Testing Tools Unity Utils & Tools Virtualization Visual studio Windows Live WPF

    Archive

    • April 2012
    • October 2011
    • August 2011
    • April 2011
    • March 2011
    • July 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • August 2008
    • March 2008
    • December 2007
    • November 2007
    • October 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
    • August 2006
    • May 2006
    • April 2006
    • March 2006
    • February 2006
    • January 2006
    • November 2005
    • October 2005
    • September 2005
    • August 2005
    • July 2005
    • June 2005
    • May 2005
    • April 2005
    • March 2005
    • February 2005
    • September 2004
    • July 2004
    • June 2004
    • May 2004
    • April 2004
    • March 2004
      Copyright 2013, Christoph De Baene