mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -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 {
|
if wsl := env.Getenv("WSL_DISTRO_NAME"); len(wsl) != 0 {
|
||||||
platform = strings.ToLower(wsl)
|
platform = strings.ToLower(wsl)
|
||||||
return platform
|
return strings.Split(platform, "-")[0]
|
||||||
}
|
}
|
||||||
platform, _, _, _ = host.PlatformInformation()
|
platform, _, _, _ = host.PlatformInformation()
|
||||||
if platform == "arch" {
|
if platform == "arch" {
|
||||||
|
|
Loading…
Reference in a new issue