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