Skip to content

Commit

Permalink
fix(pwsh): map home dir on theme export
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Mar 27, 2021
1 parent 4c992e6 commit 61cb33f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/init/omp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61cb33f

Please sign in to comment.