Examples/Darkly.ps1

#requires -Module Pansies, PowerLine
[CmdletBinding()]param()

Write-Verbose "First we set the default caps"
[PoshCode.TerminalBlock]::DefaultCapsLeftAligned = "","$([char]0xE0B0)"
[PoshCode.TerminalBlock]::DefaultCapsRightAligned = "$([char]0xE0B2)",""

Write-Verbose "Then we set the prompt"
Set-PowerLinePrompt -SetCurrentDirectory -DefaultSeparator "$([char]0xE0B1)","$([char]0xE0B3)" -DefaultCapsLeftAligned "","$([char]0xE0B0)" -DefaultCapsRightAligned "$([char]0xE0B2)","" -Title {
    -join @(
        if (Test-Elevation) {
            "Administrator: "
        }
        if ($IsCoreCLR) {
            "pwsh - "
        } else {
            "Windows PowerShell - "
        }
        Convert-Path $pwd
    )
} -Prompt @(
    Show-HistoryId -Background 'SteelBlue1' -ErrorBackgroundColor '#8B2252'
    Show-Path -HomeString "&House;" -Separator '' -Background 'Gray100' -Foreground 'Black'
    Show-PoshGitStatus -Background 'Gray23'
    Show-Date -Format "h\:mm" -Prefix "🕒"  -Alignment 'Right' -Background 'Gray23'
    Show-ElapsedTime -Autoformat -Prefix "⏱️"  -Alignment 'Right' -Background 'Gray47'
    New-TerminalBlock -DFg 'White' -DBg '#63B8FF' -EFg 'White' -Cap '‍' -Content ''
) -Verbose -PSReadLineContinuationPrompt '▌ ' -PSReadLineContinuationPromptColor '' -PSReadLinePromptText '',''