mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-19 21:17:31 -07:00
refactor(pwsh): print the currently selected theme
This commit is contained in:
parent
2fee6237b6
commit
ddcd4c635b
|
@ -86,8 +86,9 @@ function Get-PoshThemes {
|
||||||
}
|
}
|
||||||
|
|
||||||
function Write-PoshTheme {
|
function Write-PoshTheme {
|
||||||
|
$config = $global:PoshSettings.Theme
|
||||||
$poshCommand = Get-PoshCommand
|
$poshCommand = Get-PoshCommand
|
||||||
Invoke-Expression -Command "$poshCommand -print-config"
|
& $poshCommand -config $config -print-config
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper function to create argument completion results
|
# Helper function to create argument completion results
|
||||||
|
|
Loading…
Reference in a new issue