mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-27 02:51:44 -08:00
fix: theme completion
This commit is contained in:
parent
ef6f7fc63c
commit
55fb04335e
|
@ -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()); } |
|
||||
|
|
Loading…
Reference in a new issue