diff --git a/scripts/Common/Software/Oh My Posh/Manage.ps1 b/scripts/Common/Software/Oh My Posh/Manage.ps1 index f3c06299..5167b87f 100644 --- a/scripts/Common/Software/Oh My Posh/Manage.ps1 +++ b/scripts/Common/Software/Oh My Posh/Manage.ps1 @@ -48,10 +48,10 @@ Start-SoftwareInstaller @PSBoundParameters ` } if ($IsWindows) { - [System.Environment]::SetEnvironmentVariable($varName, $path, "User"); + [System.Environment]::SetEnvironmentVariable($varName, "%AppData%/$([System.IO.Path]::GetRelativePath($env:AppData, $path))", "User"); } else { . "$PSScriptRoot/../aliae/Manage.ps1"; - Add-EnvironmentVariable -User $Arguments.Name $varName $path; + Add-EnvironmentVariable -User $Arguments.Name $varName ($path).Replace("~", "{{ .Home }}"); } } };