Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
- Import-Module posh-git
- function global:prompt {
- $realLASTEXITCODE = $LASTEXITCODE
- Write-Host("")
- Write-Host([Environment]::MachineName + ": ") -nonewline -foregroundcolor "gray"
- # Creates a unix-like home path.
- $a = $pwd.ProviderPath -replace [regex]::Escape($env:USERPROFILE), "~"
- Write-Host($a) -nonewline
- Write-VcsStatus
- $global:LASTEXITCODE = $realLASTEXITCODE
- return " $ "
- }
- Pop-Location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement