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