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