Source

PowerShell Prompt for Mercurial /

Filename Size Date modified Message
1.6 KB
1.1 KB
6.0 KB
2.0 KB
Powershell Prompt For Mercurial

Example:
@ guestnet [default A4 M2 D1 !0 ?12]>

Meaning:
@        - at
guestnet - current name of directory (Hopefully the name of project!)
default  - name of current branch
A4       - 4 files Added
M2       - 2 files Modified
D1       - 1 file Deleted
!0       - 0 files missing
?12      - 12 files is untracked

For more information about symbols of status use this command:
hg help status

A, M, D colors are used to mimic the same colors used in bitbucket.org :)

Usage:
Copy *.ps1 in {Documents}/WindowsPowerShell
if (you can't execute scripts then)
  - check which is PS Execution Policy by typing command:
  PS> executionpolicy |or with| get-executionpolicy
  if (is Restricted then type command)
    PS> set-executionpolicy remotesigned (Now you should be able to run scripts, BUT SECURITY RISK !!!)
  else (No Security Risk)
    you have to sign the scripts (Google it!)
  end    
end

Enjoy!

Information:
xajler = Kornelije Sajler <xajler@gmail.com>
http://learnaholic.me
http://metaintellect.com