mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
parent
cc1da3f0ea
commit
b4eadff3b6
|
@ -66,7 +66,7 @@ func (env *ShellEnvironment) Platform() string {
|
|||
}()
|
||||
if wsl := env.Getenv("WSL_DISTRO_NAME"); len(wsl) != 0 {
|
||||
platform = strings.ToLower(wsl)
|
||||
return platform
|
||||
return strings.Split(platform, "-")[0]
|
||||
}
|
||||
platform, _, _, _ = host.PlatformInformation()
|
||||
if platform == "arch" {
|
||||
|
|
Loading…
Reference in a new issue