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