-
-
Save Chirishman/ad7ab9492f9972d77536e89fb1f02053 to your computer and use it in GitHub Desktop.
Experimenting with PowerLine - Bug Found
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
[System.Collections.Generic.List[ScriptBlock]]$Prompt = @( | |
{New-PromptText -Fg 8 -Bg 117 ($MyInvocation.HistoryId.tostring("0000"))} | |
{New-PromptText -Fg White -Bg 3 -InputObject $env:USERNAME} | |
{New-PromptText -Fg White -Bg 22 ((Get-Location -Stack).count|?{$_})} | |
{New-PromptText -Fg White -Bg 13 ($pwd.Drive.Name)} | |
{New-PromptText -Fg White -Bg 20 (((Get-SegmentedPath) -replace '\\') -join [PoshCode.Pansies.Entities]::ExtendedCharacters.Separator)} | |
{"`t"} | |
{New-PromptText -ForegroundColor White -BackgroundColor 22 -ErrorBackgroundColor 1 (Get-Elapsed)} | |
{New-PromptText -ForegroundColor Black -BackgroundColor 7 ((Get-Date -f "T") + ' ')} | |
{"`n"} | |
{New-PromptText { "I $(New-PromptText -Fg Red -EFg White "♥$([char]27)[30m") PS" } -Bg White -EBg Red -Fg Black} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment