mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-28 11:31:04 -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 @{
|
$themes = Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | Select-Object -Property @{
|
||||||
label='BaseName'
|
label='BaseName'
|
||||||
expression={$_.BaseName.TrimEnd(".omp")}
|
expression={$_.BaseName.Replace('.omp', '')}
|
||||||
}
|
}
|
||||||
$themes |
|
$themes |
|
||||||
Where-Object { $_.BaseName.ToLower().StartsWith($wordToComplete.ToLower()); } |
|
Where-Object { $_.BaseName.ToLower().StartsWith($wordToComplete.ToLower()); } |
|
||||||
|
|
Loading…
Reference in a new issue