fix(pwsh): map home dir on theme export

This commit is contained in:
Jan De Dobbeleer 2021-03-26 18:56:40 +01:00 committed by Jan De Dobbeleer
parent 4c992e65b3
commit 61cb33f4f9

View file

@ -81,6 +81,10 @@ function global:Export-PoshTheme {
$Format = 'json'
)
if ($FilePath.StartsWith('~')) {
$FilePath = $FilePath.Replace('~', $HOME)
}
$config = $global:PoshSettings.Theme
$omp = "::OMP::"
$configString = @(&$omp --config="$config" --config-format="$Format" --print-config 2>&1)