mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
feat(os): add Redhat icon
This commit is contained in:
parent
ef267a8f4c
commit
636a5e29fc
|
@ -51,6 +51,8 @@ const (
|
||||||
Nixos properties.Property = "nixos"
|
Nixos properties.Property = "nixos"
|
||||||
// Opensuse the string/icon to use for Opensuse
|
// Opensuse the string/icon to use for Opensuse
|
||||||
Opensuse properties.Property = "opensuse"
|
Opensuse properties.Property = "opensuse"
|
||||||
|
// Redhat the string/icon to use for Redhat
|
||||||
|
Redhat properties.Property = "redhat"
|
||||||
// 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
|
||||||
|
@ -120,6 +122,8 @@ func (oi *Os) getDistroIcon(distro string) string {
|
||||||
return oi.props.GetString(Nixos, "\uF313")
|
return oi.props.GetString(Nixos, "\uF313")
|
||||||
case "opensuse":
|
case "opensuse":
|
||||||
return oi.props.GetString(Opensuse, "\uF314")
|
return oi.props.GetString(Opensuse, "\uF314")
|
||||||
|
case "redhat":
|
||||||
|
return oi.props.GetString(Redhat, "\uF316")
|
||||||
case "sabayon":
|
case "sabayon":
|
||||||
return oi.props.GetString(Sabayon, "\uF317")
|
return oi.props.GetString(Sabayon, "\uF317")
|
||||||
case "slackware":
|
case "slackware":
|
||||||
|
|
|
@ -1566,6 +1566,12 @@
|
||||||
"description": "The icon to use for Opensuse",
|
"description": "The icon to use for Opensuse",
|
||||||
"default": "\uF314"
|
"default": "\uF314"
|
||||||
},
|
},
|
||||||
|
"redhat": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Redhat Icon",
|
||||||
|
"description": "The icon to use for Redhat",
|
||||||
|
"default": "\uF316"
|
||||||
|
},
|
||||||
"sabayon": {
|
"sabayon": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Sabayon Icon",
|
"title": "Sabayon Icon",
|
||||||
|
|
|
@ -47,6 +47,7 @@ Display OS specific info - defaults to Icon.
|
||||||
| `mint` | `string` | the icon to use for Mint - defaults to Mint icon - defaults to `\uF30e` |
|
| `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` |
|
| `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` |
|
| `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` |
|
| `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` |
|
| `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` |
|
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to Ubuntu icon - defaults to `\uF31b` |
|
||||||
|
|
Loading…
Reference in a new issue