mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -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