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
6 changed files with 39 additions and 2 deletions
+6 -1
View File
@@ -28,7 +28,9 @@ impl<'a> Default for OSConfig<'a> {
format: "[$symbol]($style)",
style: "bold white",
symbols: indexmap! {
Type::AIX => "",
Type::Alpaquita => "🔔 ",
Type::AlmaLinux => "💠 ",
Type::Alpine => "🏔️ ",
Type::Amazon => "🙂 ",
Type::Android => "🤖 ",
@@ -45,6 +47,7 @@ impl<'a> Default for OSConfig<'a> {
Type::Gentoo => "🗜️ ",
Type::HardenedBSD => "🛡️ ",
Type::Illumos => "🐦 ",
Type::Kali => "🐉 ",
Type::Linux => "🐧 ",
Type::Mabox => "📦 ",
Type::Macos => "🍎 ",
@@ -63,11 +66,14 @@ impl<'a> Default for OSConfig<'a> {
Type::Raspbian => "🍓 ",
Type::Redhat => "🎩 ",
Type::RedHatEnterprise => "🎩 ",
Type::RockyLinux => "💠 ",
Type::Redox => "🧪 ",
Type::Solus => "",
Type::SUSE => "🦎 ",
Type::Ubuntu => "🎯 ",
Type::Ultramarine => "🔷 ",
Type::Unknown => "",
Type::Void => "",
Type::Windows => "🪟 ",
// Future symbols.
//aosc => " ",
@@ -79,7 +85,6 @@ impl<'a> Default for OSConfig<'a> {
//mandriva => " ",
//sabayon => " ",
//slackware => " ",
//void => " ",
//solaris => " ",
},
disabled: true,
+5 -1
View File
@@ -331,12 +331,13 @@ mod tests {
// - dosc/.vuepress/public/presets/toml/nerd-font-symbols.toml
// - .github/config-schema.json
let _ = |t: Type| match t {
Type::AIX => "",
Type::Alpaquita => "🔔 ",
Type::Alpine => "🏔️ ",
Type::Amazon => "🙂 ",
Type::Android => "🤖 ",
Type::Arch | Type::Artix => "🎗️ ",
Type::CentOS => "💠 ",
Type::CentOS | Type::AlmaLinux | Type::RockyLinux => "💠 ",
Type::Debian => "🌀 ",
Type::DragonFly => "🐉 ",
Type::Emscripten => "🔗 ",
@@ -347,6 +348,7 @@ mod tests {
Type::Gentoo => "🗜️ ",
Type::HardenedBSD => "🛡️ ",
Type::Illumos => "🐦 ",
Type::Kali => "🐉 ",
Type::Linux => "🐧 ",
Type::Mabox => "📦 ",
Type::Macos => "🍎 ",
@@ -369,7 +371,9 @@ mod tests {
Type::Solus => "",
Type::SUSE => "🦎 ",
Type::Ubuntu => "🎯 ",
Type::Ultramarine => "🔷 ",
Type::Unknown => "",
Type::Void => "",
Type::Windows => "🪟 ",
_ => "",
};