Inspired by the Posh-Git project (http://github.com/dahlbyk/posh-git)

Posh-hg provides a custom prompt and tab expansion when using Mercurial from within a Windows Powershell command line.

For more details, see this post on Jeremy's blog

The source code is available on github

To install posh-hg, download the latest source either from github or on CodePlex

. path\to\posh-hg\profile.example.ps1

Alternatively, you can copy the contents of the profile.example.ps1 file in to your profile.ps1

The prompt is customisable. For example, you could have a multi-line prompt:

$global:HgPromptSettings.BeforeText = ' on '$global:HgPromptSettings.BeforeForegroundColor = [ConsoleColor]::White
$global:HgPromptSettings.AfterText = " nhg"$global:HgPromptSettings.BeforeTagText = ' at '
`