mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(pwsh): map home dir on theme export
This commit is contained in:
parent
4c992e65b3
commit
61cb33f4f9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue