Created
November 7, 2017 13:37
-
-
Save crossan007/9f1c420a3efdcfa9298f54103291e9ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt { | |
$origLastExitCode = $LASTEXITCODE | |
$Leaf = $(Split-Path -Path $($ExecutionContext.SessionState.Path.CurrentLocation) -Leaf) | |
$ParentLeaf = Split-Path -Path $($(Split-Path -Path $($ExecutionContext.SessionState.Path.CurrentLocation) -Parent)) -Leaf | |
Write-Host "$ParentLeaf\$Leaf" -NoNewline | |
Write-VcsStatus | |
$LASTEXITCODE = $origLastExitCode | |
"$('>' * ($nestedPromptLevel + 1)) " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment