Created
May 19, 2017 14:59
-
-
Save nightroman/ea8e3e97315257b173ec62a02f29952c to your computer and use it in GitHub Desktop.
My Microsoft.VSCode_profile.ps1
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 | |
{ | |
#! now: last error for the color | |
$color = if ($?) { 10 } else { 12 } | |
# debug | |
if ($ExecutionContext.SessionState.PSVariable.GetValue('PSDebugContext')) { | |
return | |
} | |
# write prompt | |
Write-Host (Get-Location) -ForegroundColor Cyan | |
Write-Host "$NestedPromptLevel>" -NoNewLine -ForegroundColor $color | |
' ' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment