mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 12:48:04 -08:00
parent
e6a99c5a52
commit
3f4f42cc09
|
@ -39,8 +39,7 @@ func (env *Shell) IsWsl() bool {
|
||||||
defer func() {
|
defer func() {
|
||||||
env.Cache().Set(key, strconv.FormatBool(val), -1)
|
env.Cache().Set(key, strconv.FormatBool(val), -1)
|
||||||
}()
|
}()
|
||||||
version := env.FileContent("/proc/version")
|
val = env.HasCommand("wslpath")
|
||||||
val = strings.Contains(version, "microsoft")
|
|
||||||
env.Debug(strconv.FormatBool(val))
|
env.Debug(strconv.FormatBool(val))
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue