Skip to content

Commit

Permalink
fix: theme completion
Browse files Browse the repository at this point in the history
  • Loading branch information
tradiff authored and JanDeDobbeleer committed Feb 6, 2021
1 parent ef6f7fc commit 55fb043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/powershell/oh-my-posh/oh-my-posh.psm1
Expand Up @@ -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()); } |
Expand Down

0 comments on commit 55fb043

Please sign in to comment.