mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
parent
5daff6b934
commit
8f3bfd674b
|
@ -68,8 +68,8 @@ func (env *ShellEnvironment) Platform() string {
|
|||
platform, _, _, _ = host.PlatformInformation()
|
||||
if platform == "arch" {
|
||||
// validate for Manjaro
|
||||
lsbInfo := env.FileContent("/etc/os-release")
|
||||
if strings.Contains(lsbInfo, "Manjaro") {
|
||||
lsbInfo := env.FileContent("/etc/lsb-release")
|
||||
if strings.Contains(strings.ToLower(lsbInfo), "manjaro") {
|
||||
platform = "manjaro"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue