mirror of
https://github.com/starship/starship.git
synced 2024-12-25 00:28:52 +01:00
feat(os): add new os symbols (#5849)
This commit is contained in:
parent
d308e918ee
commit
df65b2155f
12
.github/config-schema.json
vendored
12
.github/config-schema.json
vendored
@ -1165,6 +1165,8 @@
|
|||||||
"format": "[$symbol]($style)",
|
"format": "[$symbol]($style)",
|
||||||
"style": "bold white",
|
"style": "bold white",
|
||||||
"symbols": {
|
"symbols": {
|
||||||
|
"AIX": "➿ ",
|
||||||
|
"AlmaLinux": "💠 ",
|
||||||
"Alpaquita": "🔔 ",
|
"Alpaquita": "🔔 ",
|
||||||
"Alpine": "🏔️ ",
|
"Alpine": "🏔️ ",
|
||||||
"Amazon": "🙂 ",
|
"Amazon": "🙂 ",
|
||||||
@ -1182,6 +1184,7 @@
|
|||||||
"Gentoo": "🗜️ ",
|
"Gentoo": "🗜️ ",
|
||||||
"HardenedBSD": "🛡️ ",
|
"HardenedBSD": "🛡️ ",
|
||||||
"Illumos": "🐦 ",
|
"Illumos": "🐦 ",
|
||||||
|
"Kali": "🐉 ",
|
||||||
"Linux": "🐧 ",
|
"Linux": "🐧 ",
|
||||||
"Mabox": "📦 ",
|
"Mabox": "📦 ",
|
||||||
"Macos": "🍎 ",
|
"Macos": "🍎 ",
|
||||||
@ -1199,10 +1202,13 @@
|
|||||||
"RedHatEnterprise": "🎩 ",
|
"RedHatEnterprise": "🎩 ",
|
||||||
"Redhat": "🎩 ",
|
"Redhat": "🎩 ",
|
||||||
"Redox": "🧪 ",
|
"Redox": "🧪 ",
|
||||||
|
"RockyLinux": "💠 ",
|
||||||
"SUSE": "🦎 ",
|
"SUSE": "🦎 ",
|
||||||
"Solus": "⛵ ",
|
"Solus": "⛵ ",
|
||||||
"Ubuntu": "🎯 ",
|
"Ubuntu": "🎯 ",
|
||||||
|
"Ultramarine": "🔷 ",
|
||||||
"Unknown": "❓ ",
|
"Unknown": "❓ ",
|
||||||
|
"Void": " ",
|
||||||
"Windows": "🪟 ",
|
"Windows": "🪟 ",
|
||||||
"openEuler": "🦉 ",
|
"openEuler": "🦉 ",
|
||||||
"openSUSE": "🦎 "
|
"openSUSE": "🦎 "
|
||||||
@ -4670,6 +4676,8 @@
|
|||||||
},
|
},
|
||||||
"symbols": {
|
"symbols": {
|
||||||
"default": {
|
"default": {
|
||||||
|
"AIX": "➿ ",
|
||||||
|
"AlmaLinux": "💠 ",
|
||||||
"Alpaquita": "🔔 ",
|
"Alpaquita": "🔔 ",
|
||||||
"Alpine": "🏔️ ",
|
"Alpine": "🏔️ ",
|
||||||
"Amazon": "🙂 ",
|
"Amazon": "🙂 ",
|
||||||
@ -4687,6 +4695,7 @@
|
|||||||
"Gentoo": "🗜️ ",
|
"Gentoo": "🗜️ ",
|
||||||
"HardenedBSD": "🛡️ ",
|
"HardenedBSD": "🛡️ ",
|
||||||
"Illumos": "🐦 ",
|
"Illumos": "🐦 ",
|
||||||
|
"Kali": "🐉 ",
|
||||||
"Linux": "🐧 ",
|
"Linux": "🐧 ",
|
||||||
"Mabox": "📦 ",
|
"Mabox": "📦 ",
|
||||||
"Macos": "🍎 ",
|
"Macos": "🍎 ",
|
||||||
@ -4704,10 +4713,13 @@
|
|||||||
"RedHatEnterprise": "🎩 ",
|
"RedHatEnterprise": "🎩 ",
|
||||||
"Redhat": "🎩 ",
|
"Redhat": "🎩 ",
|
||||||
"Redox": "🧪 ",
|
"Redox": "🧪 ",
|
||||||
|
"RockyLinux": "💠 ",
|
||||||
"SUSE": "🦎 ",
|
"SUSE": "🦎 ",
|
||||||
"Solus": "⛵ ",
|
"Solus": "⛵ ",
|
||||||
"Ubuntu": "🎯 ",
|
"Ubuntu": "🎯 ",
|
||||||
|
"Ultramarine": "🔷 ",
|
||||||
"Unknown": "❓ ",
|
"Unknown": "❓ ",
|
||||||
|
"Void": " ",
|
||||||
"Windows": "🪟 ",
|
"Windows": "🪟 ",
|
||||||
"openEuler": "🦉 ",
|
"openEuler": "🦉 ",
|
||||||
"openSUSE": "🦎 "
|
"openSUSE": "🦎 "
|
||||||
|
@ -3173,7 +3173,9 @@ If you would like an operating system to be added, feel free to open a [feature
|
|||||||
```toml
|
```toml
|
||||||
# This is the default symbols table.
|
# This is the default symbols table.
|
||||||
[os.symbols]
|
[os.symbols]
|
||||||
|
AIX = "➿ "
|
||||||
Alpaquita = "🔔 "
|
Alpaquita = "🔔 "
|
||||||
|
AlmaLinux = "💠 "
|
||||||
Alpine = "🏔️ "
|
Alpine = "🏔️ "
|
||||||
Amazon = "🙂 "
|
Amazon = "🙂 "
|
||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
@ -3190,6 +3192,7 @@ Garuda = "🦅 "
|
|||||||
Gentoo = "🗜️ "
|
Gentoo = "🗜️ "
|
||||||
HardenedBSD = "🛡️ "
|
HardenedBSD = "🛡️ "
|
||||||
Illumos = "🐦 "
|
Illumos = "🐦 "
|
||||||
|
Kali = "🐉 "
|
||||||
Linux = "🐧 "
|
Linux = "🐧 "
|
||||||
Mabox = "📦 "
|
Mabox = "📦 "
|
||||||
Macos = "🍎 "
|
Macos = "🍎 "
|
||||||
@ -3208,11 +3211,14 @@ Pop = "🍭 "
|
|||||||
Raspbian = "🍓 "
|
Raspbian = "🍓 "
|
||||||
Redhat = "🎩 "
|
Redhat = "🎩 "
|
||||||
RedHatEnterprise = "🎩 "
|
RedHatEnterprise = "🎩 "
|
||||||
|
RockyLinux = "💠 "
|
||||||
Redox = "🧪 "
|
Redox = "🧪 "
|
||||||
Solus = "⛵ "
|
Solus = "⛵ "
|
||||||
SUSE = "🦎 "
|
SUSE = "🦎 "
|
||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ symbol = " "
|
|||||||
[os.symbols]
|
[os.symbols]
|
||||||
Alpaquita = " "
|
Alpaquita = " "
|
||||||
Alpine = " "
|
Alpine = " "
|
||||||
|
AlmaLinux = " "
|
||||||
Amazon = " "
|
Amazon = " "
|
||||||
Android = " "
|
Android = " "
|
||||||
Arch = " "
|
Arch = " "
|
||||||
@ -103,6 +104,7 @@ Garuda = " "
|
|||||||
Gentoo = " "
|
Gentoo = " "
|
||||||
HardenedBSD = " "
|
HardenedBSD = " "
|
||||||
Illumos = " "
|
Illumos = " "
|
||||||
|
Kali = " "
|
||||||
Linux = " "
|
Linux = " "
|
||||||
Mabox = " "
|
Mabox = " "
|
||||||
Macos = " "
|
Macos = " "
|
||||||
@ -119,11 +121,13 @@ Pop = " "
|
|||||||
Raspbian = " "
|
Raspbian = " "
|
||||||
Redhat = " "
|
Redhat = " "
|
||||||
RedHatEnterprise = " "
|
RedHatEnterprise = " "
|
||||||
|
RockyLinux = " "
|
||||||
Redox = " "
|
Redox = " "
|
||||||
Solus = " "
|
Solus = " "
|
||||||
SUSE = " "
|
SUSE = " "
|
||||||
Ubuntu = " "
|
Ubuntu = " "
|
||||||
Unknown = " "
|
Unknown = " "
|
||||||
|
Void = " "
|
||||||
Windows = " "
|
Windows = " "
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
|
@ -119,7 +119,9 @@ symbol = "ml "
|
|||||||
symbol = "opa "
|
symbol = "opa "
|
||||||
|
|
||||||
[os.symbols]
|
[os.symbols]
|
||||||
|
AIX = "aix "
|
||||||
Alpaquita = "alq "
|
Alpaquita = "alq "
|
||||||
|
AlmaLinux = "alma "
|
||||||
Alpine = "alp "
|
Alpine = "alp "
|
||||||
Amazon = "amz "
|
Amazon = "amz "
|
||||||
Android = "andr "
|
Android = "andr "
|
||||||
@ -136,6 +138,7 @@ Garuda = "garu "
|
|||||||
Gentoo = "gent "
|
Gentoo = "gent "
|
||||||
HardenedBSD = "hbsd "
|
HardenedBSD = "hbsd "
|
||||||
Illumos = "lum "
|
Illumos = "lum "
|
||||||
|
Kali = "kali "
|
||||||
Linux = "lnx "
|
Linux = "lnx "
|
||||||
Mabox = "mbox "
|
Mabox = "mbox "
|
||||||
Macos = "mac "
|
Macos = "mac "
|
||||||
@ -154,11 +157,14 @@ Pop = "pop "
|
|||||||
Raspbian = "rasp "
|
Raspbian = "rasp "
|
||||||
Redhat = "rhl "
|
Redhat = "rhl "
|
||||||
RedHatEnterprise = "rhel "
|
RedHatEnterprise = "rhel "
|
||||||
|
Rocky = "rky "
|
||||||
Redox = "redox "
|
Redox = "redox "
|
||||||
Solus = "sol "
|
Solus = "sol "
|
||||||
SUSE = "suse "
|
SUSE = "suse "
|
||||||
Ubuntu = "ubnt "
|
Ubuntu = "ubnt "
|
||||||
|
Ultramarine = "ultm "
|
||||||
Unknown = "unk "
|
Unknown = "unk "
|
||||||
|
Void = "void "
|
||||||
Windows = "win "
|
Windows = "win "
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
|
@ -28,7 +28,9 @@ impl<'a> Default for OSConfig<'a> {
|
|||||||
format: "[$symbol]($style)",
|
format: "[$symbol]($style)",
|
||||||
style: "bold white",
|
style: "bold white",
|
||||||
symbols: indexmap! {
|
symbols: indexmap! {
|
||||||
|
Type::AIX => "➿ ",
|
||||||
Type::Alpaquita => "🔔 ",
|
Type::Alpaquita => "🔔 ",
|
||||||
|
Type::AlmaLinux => "💠 ",
|
||||||
Type::Alpine => "🏔️ ",
|
Type::Alpine => "🏔️ ",
|
||||||
Type::Amazon => "🙂 ",
|
Type::Amazon => "🙂 ",
|
||||||
Type::Android => "🤖 ",
|
Type::Android => "🤖 ",
|
||||||
@ -45,6 +47,7 @@ impl<'a> Default for OSConfig<'a> {
|
|||||||
Type::Gentoo => "🗜️ ",
|
Type::Gentoo => "🗜️ ",
|
||||||
Type::HardenedBSD => "🛡️ ",
|
Type::HardenedBSD => "🛡️ ",
|
||||||
Type::Illumos => "🐦 ",
|
Type::Illumos => "🐦 ",
|
||||||
|
Type::Kali => "🐉 ",
|
||||||
Type::Linux => "🐧 ",
|
Type::Linux => "🐧 ",
|
||||||
Type::Mabox => "📦 ",
|
Type::Mabox => "📦 ",
|
||||||
Type::Macos => "🍎 ",
|
Type::Macos => "🍎 ",
|
||||||
@ -63,11 +66,14 @@ impl<'a> Default for OSConfig<'a> {
|
|||||||
Type::Raspbian => "🍓 ",
|
Type::Raspbian => "🍓 ",
|
||||||
Type::Redhat => "🎩 ",
|
Type::Redhat => "🎩 ",
|
||||||
Type::RedHatEnterprise => "🎩 ",
|
Type::RedHatEnterprise => "🎩 ",
|
||||||
|
Type::RockyLinux => "💠 ",
|
||||||
Type::Redox => "🧪 ",
|
Type::Redox => "🧪 ",
|
||||||
Type::Solus => "⛵ ",
|
Type::Solus => "⛵ ",
|
||||||
Type::SUSE => "🦎 ",
|
Type::SUSE => "🦎 ",
|
||||||
Type::Ubuntu => "🎯 ",
|
Type::Ubuntu => "🎯 ",
|
||||||
|
Type::Ultramarine => "🔷 ",
|
||||||
Type::Unknown => "❓ ",
|
Type::Unknown => "❓ ",
|
||||||
|
Type::Void => " ",
|
||||||
Type::Windows => "🪟 ",
|
Type::Windows => "🪟 ",
|
||||||
// Future symbols.
|
// Future symbols.
|
||||||
//aosc => " ",
|
//aosc => " ",
|
||||||
@ -79,7 +85,6 @@ impl<'a> Default for OSConfig<'a> {
|
|||||||
//mandriva => " ",
|
//mandriva => " ",
|
||||||
//sabayon => " ",
|
//sabayon => " ",
|
||||||
//slackware => " ",
|
//slackware => " ",
|
||||||
//void => " ",
|
|
||||||
//solaris => " ",
|
//solaris => " ",
|
||||||
},
|
},
|
||||||
disabled: true,
|
disabled: true,
|
||||||
|
@ -331,12 +331,13 @@ mod tests {
|
|||||||
// - dosc/.vuepress/public/presets/toml/nerd-font-symbols.toml
|
// - dosc/.vuepress/public/presets/toml/nerd-font-symbols.toml
|
||||||
// - .github/config-schema.json
|
// - .github/config-schema.json
|
||||||
let _ = |t: Type| match t {
|
let _ = |t: Type| match t {
|
||||||
|
Type::AIX => "➿ ",
|
||||||
Type::Alpaquita => "🔔 ",
|
Type::Alpaquita => "🔔 ",
|
||||||
Type::Alpine => "🏔️ ",
|
Type::Alpine => "🏔️ ",
|
||||||
Type::Amazon => "🙂 ",
|
Type::Amazon => "🙂 ",
|
||||||
Type::Android => "🤖 ",
|
Type::Android => "🤖 ",
|
||||||
Type::Arch | Type::Artix => "🎗️ ",
|
Type::Arch | Type::Artix => "🎗️ ",
|
||||||
Type::CentOS => "💠 ",
|
Type::CentOS | Type::AlmaLinux | Type::RockyLinux => "💠 ",
|
||||||
Type::Debian => "🌀 ",
|
Type::Debian => "🌀 ",
|
||||||
Type::DragonFly => "🐉 ",
|
Type::DragonFly => "🐉 ",
|
||||||
Type::Emscripten => "🔗 ",
|
Type::Emscripten => "🔗 ",
|
||||||
@ -347,6 +348,7 @@ mod tests {
|
|||||||
Type::Gentoo => "🗜️ ",
|
Type::Gentoo => "🗜️ ",
|
||||||
Type::HardenedBSD => "🛡️ ",
|
Type::HardenedBSD => "🛡️ ",
|
||||||
Type::Illumos => "🐦 ",
|
Type::Illumos => "🐦 ",
|
||||||
|
Type::Kali => "🐉 ",
|
||||||
Type::Linux => "🐧 ",
|
Type::Linux => "🐧 ",
|
||||||
Type::Mabox => "📦 ",
|
Type::Mabox => "📦 ",
|
||||||
Type::Macos => "🍎 ",
|
Type::Macos => "🍎 ",
|
||||||
@ -369,7 +371,9 @@ mod tests {
|
|||||||
Type::Solus => "⛵ ",
|
Type::Solus => "⛵ ",
|
||||||
Type::SUSE => "🦎 ",
|
Type::SUSE => "🦎 ",
|
||||||
Type::Ubuntu => "🎯 ",
|
Type::Ubuntu => "🎯 ",
|
||||||
|
Type::Ultramarine => "🔷 ",
|
||||||
Type::Unknown => "❓ ",
|
Type::Unknown => "❓ ",
|
||||||
|
Type::Void => " ",
|
||||||
Type::Windows => "🪟 ",
|
Type::Windows => "🪟 ",
|
||||||
_ => "",
|
_ => "",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user