Skip to content

Commit d7f833d

Browse files
updating fred prompt
1 parent 9fa0a88 commit d7f833d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

PSUtil/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## ???
4+
5+
- Upd: Prompt Fred - added nested prompt level if greater than 0
6+
37
## 2.2.35 (2021-10-13)
48

59
- New: Object Conversion - NT <--> SID

PSUtil/internal/prompts/fred.prompt.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
}
1010
}
1111
catch { }
12+
if ($NestedPromptLevel -gt 0) {
13+
Write-PSFHostColor -String "[<c='sub'>$NestedPromptLevel</c>] " -NoNewLine -DefaultColor DarkGreen
14+
}
1215
$segments = $executionContext.SessionState.Path.CurrentLocation.Path -split "\\"
1316
if ($segments.Count -lt 4) { Write-Host "$($executionContext.SessionState.Path.CurrentLocation.Path)" -NoNewline }
1417
else { Write-Host "($($segments.Count - 2)) ..\$($segments[-2])\$($segments[-1])" -NoNewline }

0 commit comments

Comments
 (0)