mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-05 16:27:26 -08:00
parent
972c3c1048
commit
f74855fc3c
|
@ -78,13 +78,14 @@ func (pt *Path) Enabled() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
pt.setStyle()
|
pt.setStyle()
|
||||||
|
pwd := pt.env.Pwd()
|
||||||
if pt.env.IsWsl() {
|
if pt.env.IsWsl() {
|
||||||
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pt.env.Pwd())
|
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pwd)
|
||||||
} else {
|
} else {
|
||||||
pt.Location = pt.pwd
|
pt.Location = pwd
|
||||||
}
|
}
|
||||||
pt.StackCount = pt.env.StackCount()
|
pt.StackCount = pt.env.StackCount()
|
||||||
pt.Writable = pt.env.DirIsWritable(pt.env.Pwd())
|
pt.Writable = pt.env.DirIsWritable(pwd)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue