mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
parent
6fcf8c0ce3
commit
d94a0db0a9
|
@ -66,6 +66,13 @@ func (env *ShellEnvironment) Platform() string {
|
||||||
return platform
|
return platform
|
||||||
}
|
}
|
||||||
platform, _, _, _ = host.PlatformInformation()
|
platform, _, _, _ = host.PlatformInformation()
|
||||||
|
if platform == "arch" {
|
||||||
|
// validate for Manjaro
|
||||||
|
lsbInfo := env.FileContent("/etc/os-release")
|
||||||
|
if strings.Contains(lsbInfo, "Manjaro") {
|
||||||
|
platform = "manjaro"
|
||||||
|
}
|
||||||
|
}
|
||||||
return platform
|
return platform
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue