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