diff --git a/scripts/Common/Config/powershell/profile.ps1 b/scripts/Common/Config/powershell/profile.ps1 index 238b1d14..deb12f81 100644 --- a/scripts/Common/Config/powershell/profile.ps1 +++ b/scripts/Common/Config/powershell/profile.ps1 @@ -20,7 +20,7 @@ $null = New-Module { } Push-Location ~; - $profiles = $profiles | ForEach-Object { Resolve-Path -Relative $_ }; + $profiles = $profiles | ForEach-Object { [System.IO.Path]::GetRelativePath($(Get-Location), $_); }; if ($Category) { $profiles = $profiles | ForEach-Object { Join-Path (Split-Path -Parent $_) "profile.d" "$Category.ps1"; };