Commit 40883495 authored by Dustin Howett's avatar Dustin Howett

Add a prompt element for Nested Prompt Level

parent 50c74a4a
......@@ -85,6 +85,14 @@ If($null -eq (Get-Module PromptEd)) {
Write-Host $PWD.ProviderPath.Replace($HOME, "~") -NoNewLine -ForegroundColor (Get-PromptColor Path)
}
Function pe_NestedPromptLevel {
If ($NestedPromptLevel -Gt 0) {
Write-Host "<" -NoNewLine -ForegroundColor DarkYellow
Write-Host "$NestedPromptLevel" -NoNewLine -ForegroundColor Yellow
Write-Host "> " -NoNewLine -ForegroundColor DarkYellow
}
}
Function pe_Sigil {
if((
New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
......@@ -132,6 +140,8 @@ If($null -eq (Get-Module PromptEd)) {
$function:pe_Provider,
$function:pe_NoSeparator,
$function:pe_ShortHomePath,
$function:pe_NestedPromptLevel,
$function:pe_NoSeparator,
$function:pe_Sigil
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment