Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
preserve $lastexit code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxslimmer committed Nov 6, 2014
1 parent 2cabd74 commit 96934b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profile.example.ps1
Expand Up @@ -10,10 +10,11 @@ Import-Module .\posh-hg

# Set up a simple prompt, adding the hg prompt parts inside hg repos
function prompt {
$realLASTEXITCODE = $LASTEXITCODE
Write-Host($pwd) -nonewline

Write-VcsStatus
$global:LASTEXITCODE = $realLASTEXITCODE
return "> "
}

Expand Down

0 comments on commit 96934b1

Please sign in to comment.