Closed tzabbi closed 1 month ago
@tzabbi this is already possible using the color template functionality:
{
"foreground_templates": [
"{{if eq \"macos\" .OS}}#FFA400{{end}}"
]
}
Or palettes
if you want to only define this logic once:
{
"palettes": {
"template": "{{ .OS }}",
"list": {
"macos": {
"accent": "#262B44" },
"mint": {
"accent": "#262B44"
}
}
}
}
Code of Conduct
What would you like to see changed?
I love the function that oh-my-posh detects the linux distro and displays the appropiate icon. An enhancement for this would be the that the color will be changed to the main color of the linux distro. e.g. Fedora blue, Linux mint green, ....