Skip to content

Instantly share code, notes, and snippets.

View stefanstranger's full-sized avatar
💭
Developing code for our customers and just for fun!

Stefan Stranger stefanstranger

💭
Developing code for our customers and just for fun!
View GitHub Profile
Set-PowerLinePrompt `
-SetCurrentDirectory `
-RestoreVirtualTerminal `
-PowerLineFont `
-FullColor `
-Title {
$title = "PowerShell {0} - {1} ({2}) - PID: {3}" -f $PSVersionTable.PSVersion.ToString(),(Convert-Path $pwd), $pwd.Provider.Name,$PID
if (Test-Elevation) {
"Elevated - $title"
} else {