mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
fix(path): use correct path for WSL conversion
This commit is contained in:
parent
b5091d8f03
commit
e4d58213ec
|
@ -79,7 +79,7 @@ func (pt *Path) Enabled() bool {
|
|||
}
|
||||
pt.setStyle()
|
||||
if pt.env.IsWsl() {
|
||||
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pt.pwd)
|
||||
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pt.env.Pwd())
|
||||
} else {
|
||||
pt.Location = pt.pwd
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue