From a0e18e998c5084d653e0db7d1aa350e7d8b20de5 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 14 Mar 2021 09:14:29 +0100 Subject: [PATCH] fix(pwsh): use standard separator char --- packages/powershell/oh-my-posh/oh-my-posh.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/powershell/oh-my-posh/oh-my-posh.psm1 b/packages/powershell/oh-my-posh/oh-my-posh.psm1 index 17ddceda..fb019605 100644 --- a/packages/powershell/oh-my-posh/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh/oh-my-posh.psm1 @@ -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"