mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
f466f919e3
commit
c7b681a2b5
|
@ -51,6 +51,8 @@ function global:Set-PoshContext {}
|
||||||
function global:Get-PoshContext {
|
function global:Get-PoshContext {
|
||||||
$cleanPWD = $PWD.ProviderPath
|
$cleanPWD = $PWD.ProviderPath
|
||||||
$cleanPSWD = $PWD.ToString()
|
$cleanPSWD = $PWD.ToString()
|
||||||
|
$cleanPWD = $cleanPWD.TrimEnd('\')
|
||||||
|
$cleanPSWD = $cleanPSWD.TrimEnd('\')
|
||||||
return $cleanPWD, $cleanPSWD
|
return $cleanPWD, $cleanPSWD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue