fix: resolve path before assigning theme

resolves #107
This commit is contained in:
Jan De Dobbeleer 2020-10-28 11:02:14 +01:00 committed by Jan De Dobbeleer
parent 82c8efe0ed
commit dc6548572f

View file

@ -37,7 +37,7 @@ function Set-PoshPrompt {
$global:PoshSettings.Theme = "$PSScriptRoot/themes/$Theme.json"
}
elseif (Test-Path $Theme) {
$global:PoshSettings.Theme = $Theme
$global:PoshSettings.Theme = Resolve-Path -Path $Theme
}
else {
$global:PoshSettings.Theme = "$PSScriptRoot/themes/jandedobbeleer.json"