diff --git a/src/init/omp.ps1 b/src/init/omp.ps1 index 8d8c117e..61244ff2 100644 --- a/src/init/omp.ps1 +++ b/src/init/omp.ps1 @@ -39,8 +39,8 @@ function global:Set-PoshContext {} function global:Get-PoshContext { $config = $env:POSH_THEME - $cleanPWD = $PWD.ProviderPath.TrimEnd("\") - $cleanPSWD = $PWD.ToString().TrimEnd("\") + $cleanPWD = $PWD.ProviderPath + $cleanPSWD = $PWD.ToString() return $config, $cleanPWD, $cleanPSWD }