diff --git a/packages/powershell/oh-my-posh/oh-my-posh.psm1 b/packages/powershell/oh-my-posh/oh-my-posh.psm1 index 0bbb5c23..bcf3adf3 100644 --- a/packages/powershell/oh-my-posh/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh/oh-my-posh.psm1 @@ -123,7 +123,7 @@ function ThemeCompletion { ) $themes = Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | Select-Object -Property @{ label='BaseName' - expression={$_.BaseName.TrimEnd(".omp")} + expression={$_.BaseName.Replace('.omp', '')} } $themes | Where-Object { $_.BaseName.ToLower().StartsWith($wordToComplete.ToLower()); } |