fix(pwsh): use standard separator char

This commit is contained in:
Jan De Dobbeleer 2021-03-14 09:14:29 +01:00
parent d570673127
commit a0e18e998c

View file

@ -76,13 +76,13 @@ function Get-PoshThemes {
Write-Host $logo
$poshCommand = Get-PoshCommand
Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | ForEach-Object -Process {
Write-Host ("" * $consoleWidth)
Write-Host ("-" * $consoleWidth)
Write-Host "Theme: $esc[1m$($_.BaseName.Replace('.omp', ''))$esc[0m"
Write-Host ""
& $poshCommand -config $($_.FullName) -pwd $PWD
Write-Host ""
}
Write-Host ("" * $consoleWidth)
Write-Host ("-" * $consoleWidth)
Write-Host ""
Write-Host "To change your theme, use the Set-PoshPrompt command. Example:"
Write-Host " Set-PoshPrompt -Theme jandedobbeleer"