Skip to content

Commit

Permalink
refactor(pwsh): print the currently selected theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Sep 21, 2020
1 parent 2fee623 commit ddcd4c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/powershell/go-my-posh/go-my-posh.psm1
Expand Up @@ -86,8 +86,9 @@ function Get-PoshThemes {
}

function Write-PoshTheme {
$config = $global:PoshSettings.Theme
$poshCommand = Get-PoshCommand
Invoke-Expression -Command "$poshCommand -print-config"
& $poshCommand -config $config -print-config
}

# Helper function to create argument completion results
Expand Down

0 comments on commit ddcd4c6

Please sign in to comment.