refactor(pwsh): print the currently selected theme

This commit is contained in:
Jan De Dobbeleer 2020-09-21 07:50:11 +02:00 committed by Jan De Dobbeleer
parent 2fee6237b6
commit ddcd4c635b

View file

@ -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