mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat(os): add new os symbols (#5849)
This commit is contained in:
+6
-1
@@ -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
@@ -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 => "🪟 ",
|
||||
_ => "",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user