Skip to content

Commit

Permalink
fix: resolve path before assigning theme
Browse files Browse the repository at this point in the history
resolves #107
  • Loading branch information
JanDeDobbeleer committed Oct 28, 2020
1 parent 82c8efe commit dc65485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/powershell/oh-my-posh/oh-my-posh.psm1
Expand Up @@ -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"
Expand Down

0 comments on commit dc65485

Please sign in to comment.