Skip to content

Instantly share code, notes, and snippets.

@heberop
Created January 30, 2016 00:50
Show Gist options
  • Save heberop/40d4859943323595f722 to your computer and use it in GitHub Desktop.
Save heberop/40d4859943323595f722 to your computer and use it in GitHub Desktop.
# Load posh-git example profile
. 'C:\Users\heber.pereira\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
function global:prompt {
$realLASTEXITCODE = $LASTEXITCODE
Write-Host("~/" + $pwd.ProviderPath.Split("\")[-1]) -nonewline
Write-VcsStatus
$global:LASTEXITCODE = $realLASTEXITCODE
Write-Host ""
return "$ "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment