From 55fb04335e289ee5492c4c6edb295bdaeae1da29 Mon Sep 17 00:00:00 2001 From: TravisTX Date: Fri, 5 Feb 2021 21:26:42 -0700 Subject: [PATCH] fix: theme completion --- packages/powershell/oh-my-posh/oh-my-posh.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } |