mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-15 13:17:53 -08:00
parent
2cc768d522
commit
c8fb6322eb
|
@ -19,6 +19,8 @@ const (
|
||||||
Linux properties.Property = "linux"
|
Linux properties.Property = "linux"
|
||||||
// Windows the string/icon to use for windows
|
// Windows the string/icon to use for windows
|
||||||
Windows properties.Property = "windows"
|
Windows properties.Property = "windows"
|
||||||
|
// Alma the string/icon to use for Alma
|
||||||
|
Alma properties.Property = "alma"
|
||||||
// Alpine the string/icon to use for Alpine
|
// Alpine the string/icon to use for Alpine
|
||||||
Alpine properties.Property = "alpine"
|
Alpine properties.Property = "alpine"
|
||||||
// Aosc the string/icon to use for Aosc
|
// Aosc the string/icon to use for Aosc
|
||||||
|
@ -53,6 +55,8 @@ const (
|
||||||
Opensuse properties.Property = "opensuse"
|
Opensuse properties.Property = "opensuse"
|
||||||
// Redhat the string/icon to use for Redhat
|
// Redhat the string/icon to use for Redhat
|
||||||
Redhat properties.Property = "redhat"
|
Redhat properties.Property = "redhat"
|
||||||
|
// Rocky the string/icon to use for Rocky linux
|
||||||
|
Rocky properties.Property = "rocky"
|
||||||
// Sabayon the string/icon to use for Sabayon
|
// Sabayon the string/icon to use for Sabayon
|
||||||
Sabayon properties.Property = "sabayon"
|
Sabayon properties.Property = "sabayon"
|
||||||
// Slackware the string/icon to use for Slackware
|
// Slackware the string/icon to use for Slackware
|
||||||
|
@ -90,6 +94,8 @@ func (oi *Os) Enabled() bool {
|
||||||
|
|
||||||
func (oi *Os) getDistroIcon(distro string) string {
|
func (oi *Os) getDistroIcon(distro string) string {
|
||||||
switch distro {
|
switch distro {
|
||||||
|
case "alma":
|
||||||
|
return oi.props.GetString(Alma, "\uF31D")
|
||||||
case "alpine":
|
case "alpine":
|
||||||
return oi.props.GetString(Alpine, "\uF300")
|
return oi.props.GetString(Alpine, "\uF300")
|
||||||
case "aosc":
|
case "aosc":
|
||||||
|
@ -124,6 +130,8 @@ func (oi *Os) getDistroIcon(distro string) string {
|
||||||
return oi.props.GetString(Opensuse, "\uF314")
|
return oi.props.GetString(Opensuse, "\uF314")
|
||||||
case "redhat":
|
case "redhat":
|
||||||
return oi.props.GetString(Redhat, "\uF316")
|
return oi.props.GetString(Redhat, "\uF316")
|
||||||
|
case "rocky":
|
||||||
|
return oi.props.GetString(Rocky, "\uF32B")
|
||||||
case "sabayon":
|
case "sabayon":
|
||||||
return oi.props.GetString(Sabayon, "\uF317")
|
return oi.props.GetString(Sabayon, "\uF317")
|
||||||
case "slackware":
|
case "slackware":
|
||||||
|
|
|
@ -1589,6 +1589,18 @@
|
||||||
"title": "Ubuntu Icon",
|
"title": "Ubuntu Icon",
|
||||||
"description": "The icon to use for Ubuntu",
|
"description": "The icon to use for Ubuntu",
|
||||||
"default": "\uF31b"
|
"default": "\uF31b"
|
||||||
|
},
|
||||||
|
"rocky": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Rocky Icon",
|
||||||
|
"description": "The icon to use for Rocky",
|
||||||
|
"default": "\uF32B"
|
||||||
|
},
|
||||||
|
"alma": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Alma Icon",
|
||||||
|
"description": "The icon to use for Alma",
|
||||||
|
"default": "\uF31D"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,32 +25,34 @@ Display OS specific info - defaults to Icon.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| --------------------- | --------- | ----------------------------------------------------------------------------------- |
|
| --------------------- | --------- | ------------------------------------------------------------------------- |
|
||||||
| `macos` | `string` | the string to use for macOS - defaults to macOS icon - defaults to `\uF179` |
|
| `macos` | `string` | the string to use for macOS - defaults to `\uF179` |
|
||||||
| `linux` | `string` | the icon to use for Linux - defaults to Linux icon - defaults to `\uF17C` |
|
| `linux` | `string` | the icon to use for Linux - defaults to `\uF17C` |
|
||||||
| `windows` | `string` | the icon to use for Windows - defaults to Windows icon - defaults to `\uE62A` |
|
| `windows` | `string` | the icon to use for Windows - defaults to `\uE62A` |
|
||||||
| `display_distro_name` | `boolean` | display the distro name or icon (for WSL and Linux) - defaults to `false` |
|
| `display_distro_name` | `boolean` | display the distro name or icon (for WSL and Linux) - defaults to `false` |
|
||||||
| `alpine` | `string` | the icon to use for Alpine - defaults to Alpine icon - defaults to `\uF300` |
|
| `alma` | `string` | the icon to use for Alma - defaults to `\uF31D` |
|
||||||
| `aosc` | `string` | the icon to use for Aosc - defaults to Aosc icon - defaults to `\uF301` |
|
| `alpine` | `string` | the icon to use for Alpine - defaults to `\uF300` |
|
||||||
| `arch` | `string` | the icon to use for Arch - defaults to Arch icon - defaults to `\uF303` |
|
| `aosc` | `string` | the icon to use for Aosc - defaults to `\uF301` |
|
||||||
| `centos` | `string` | the icon to use for Centos - defaults to Centos icon - defaults to `\uF304` |
|
| `arch` | `string` | the icon to use for Arch - defaults to `\uF303` |
|
||||||
| `coreos` | `string` | the icon to use for Coreos - defaults to Coreos icon - defaults to `\uF305` |
|
| `centos` | `string` | the icon to use for Centos - defaults to `\uF304` |
|
||||||
| `debian` | `string` | the icon to use for Debian - defaults to Debian icon - defaults to `\uF306` |
|
| `coreos` | `string` | the icon to use for Coreos - defaults to `\uF305` |
|
||||||
| `devuan` | `string` | the icon to use for Devuan - defaults to Devuan icon - defaults to `\uF307` |
|
| `debian` | `string` | the icon to use for Debian - defaults to `\uF306` |
|
||||||
| `raspbian` | `string` | the icon to use for Raspbian - defaults to Raspbian icon - defaults to `\uF315` |
|
| `devuan` | `string` | the icon to use for Devuan - defaults to `\uF307` |
|
||||||
| `elementary` | `string` | the icon to use for Elementary - defaults to Elementary icon - defaults to `\uF309` |
|
| `raspbian` | `string` | the icon to use for Raspbian - defaults to `\uF315` |
|
||||||
| `fedora` | `string` | the icon to use for Fedora - defaults to Fedora icon - defaults to `\uF30a` |
|
| `elementary` | `string` | the icon to use for Elementary - defaults to `\uF309` |
|
||||||
| `gentoo` | `string` | the icon to use for Gentoo - defaults to Gentoo icon - defaults to `\uF30d` |
|
| `fedora` | `string` | the icon to use for Fedora - defaults to `\uF30a` |
|
||||||
| `mageia` | `string` | the icon to use for Mageia - defaults to Mageia icon - defaults to `\uF310` |
|
| `gentoo` | `string` | the icon to use for Gentoo - defaults to `\uF30d` |
|
||||||
| `manjaro` | `string` | the icon to use for Manjaro - defaults to Manjaro icon - defaults to `\uF312` |
|
| `mageia` | `string` | the icon to use for Mageia - defaults to `\uF310` |
|
||||||
| `mint` | `string` | the icon to use for Mint - defaults to Mint icon - defaults to `\uF30e` |
|
| `manjaro` | `string` | the icon to use for Manjaro - defaults to `\uF312` |
|
||||||
| `nixos` | `string` | the icon to use for Nixos - defaults to Nixos icon - defaults to `\uF313` |
|
| `mint` | `string` | the icon to use for Mint - defaults to `\uF30e` |
|
||||||
| `opensuse` | `string` | the icon to use for Opensuse - defaults to Opensuse icon - defaults to `\uF314` |
|
| `nixos` | `string` | the icon to use for Nixos - defaults to `\uF313` |
|
||||||
| `redhat` | `string` | the icon to use for Redhat - defaults to Redhat icon - defaults to `\uF316` |
|
| `opensuse` | `string` | the icon to use for Opensuse - defaults to `\uF314` |
|
||||||
| `sabayon` | `string` | the icon to use for Sabayon - defaults to Sabayon icon - defaults to `\uF317` |
|
| `redhat` | `string` | the icon to use for Redhat - defaults to `\uF316` |
|
||||||
| `slackware` | `string` | the icon to use for Slackware - defaults to Slackware icon - defaults to `\uF319` |
|
| `rocky` | `string` | the icon to use for Rocky - defaults to `\uF32B` |
|
||||||
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to Ubuntu icon - defaults to `\uF31b` |
|
| `sabayon` | `string` | the icon to use for Sabayon - defaults to `\uF317` |
|
||||||
|
| `slackware` | `string` | the icon to use for Slackware - defaults to `\uF319` |
|
||||||
|
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to `\uF31b` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue