feat(os): add new os symbols (#5849)

This commit is contained in:
David Knaack 2024-03-21 12:39:28 +01:00 committed by GitHub
parent d308e918ee
commit df65b2155f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 39 additions and 2 deletions

View File

@ -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": "๐ŸฆŽ "

View File

@ -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 = "๐ŸชŸ "
``` ```

View File

@ -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]

View File

@ -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]

View File

@ -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,

View File

@ -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 => "๐ŸชŸ ",
_ => "", _ => "",
}; };