Skip to content

Instantly share code, notes, and snippets.

@Chirishman
Created April 8, 2019 08:30
Show Gist options
  • Save Chirishman/ad7ab9492f9972d77536e89fb1f02053 to your computer and use it in GitHub Desktop.
Save Chirishman/ad7ab9492f9972d77536e89fb1f02053 to your computer and use it in GitHub Desktop.
Experimenting with PowerLine - Bug Found
[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