Fix: Issue #6549 - Space after OS icons should be in format, not table

Replacing the space after the OS icons with a space in the format so that people like me can just set format = '[$symbol]($style)' and not touch the table.
This commit is contained in:
Kirubel Midru 2025-02-09 12:13:44 +03:00 committed by GitHub
parent eede6d97c2
commit 977a0e4c2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,59 +25,59 @@ impl<'a> OSConfig<'a> {
impl Default for OSConfig<'_> {
fn default() -> Self {
OSConfig {
format: "[$symbol]($style)",
format: "[$symbol] ($style)",
style: "bold white",
symbols: indexmap! {
Type::AIX => " ",
Type::Alpaquita => "🔔 ",
Type::AlmaLinux => "💠 ",
Type::Alpine => "🏔️ ",
Type::Amazon => "🙂 ",
Type::Android => "🤖 ",
Type::Arch => "🎗️ ",
Type::Artix => "🎗️ ",
Type::CachyOS => "🎗️ ",
Type::CentOS => "💠 ",
Type::Debian => "🌀 ",
Type::DragonFly => "🐉 ",
Type::Emscripten => "🔗 ",
Type::EndeavourOS => "🚀 ",
Type::Fedora => "🎩 ",
Type::FreeBSD => "😈 ",
Type::Garuda => "🦅 ",
Type::Gentoo => "🗜️ ",
Type::HardenedBSD => "🛡️ ",
Type::Illumos => "🐦 ",
Type::Kali => "🐉 ",
Type::Linux => "🐧 ",
Type::Mabox => "📦 ",
Type::Macos => "🍎 ",
Type::Manjaro => "🥭 ",
Type::Mariner => "🌊 ",
Type::MidnightBSD => "🌘 ",
Type::Mint => "🌿 ",
Type::NetBSD => "🚩 ",
Type::NixOS => "❄️ ",
Type::Nobara => "🎩 ",
Type::OpenBSD => "🐡 ",
Type::OpenCloudOS => "☁️ ",
Type::openEuler => "🦉 ",
Type::openSUSE => "🦎 ",
Type::OracleLinux => "🦴 ",
Type::Pop => "🍭 ",
Type::Raspbian => "🍓 ",
Type::Redhat => "🎩 ",
Type::RedHatEnterprise => "🎩 ",
Type::RockyLinux => "💠 ",
Type::Redox => "🧪 ",
Type::Solus => " ",
Type::SUSE => "🦎 ",
Type::Ubuntu => "🎯 ",
Type::Ultramarine => "🔷 ",
Type::Unknown => " ",
Type::Uos => "🐲 ",
Type::Void => " ",
Type::Windows => "🪟 ",
Type::AIX => "",
Type::Alpaquita => "🔔",
Type::AlmaLinux => "💠",
Type::Alpine => "🏔️",
Type::Amazon => "🙂",
Type::Android => "🤖",
Type::Arch => "🎗️",
Type::Artix => "🎗️",
Type::CachyOS => "🎗️",
Type::CentOS => "💠",
Type::Debian => "🌀",
Type::DragonFly => "🐉",
Type::Emscripten => "🔗",
Type::EndeavourOS => "🚀",
Type::Fedora => "🎩",
Type::FreeBSD => "😈",
Type::Garuda => "🦅",
Type::Gentoo => "🗜️",
Type::HardenedBSD => "🛡️",
Type::Illumos => "🐦",
Type::Kali => "🐉",
Type::Linux => "🐧",
Type::Mabox => "📦",
Type::Macos => "🍎",
Type::Manjaro => "🥭",
Type::Mariner => " ",
Type::MidnightBSD => "🌘",
Type::Mint => "🌿",
Type::NetBSD => "🚩",
Type::NixOS => "❄️",
Type::Nobara => "🎩",
Type::OpenBSD => "🐡",
Type::OpenCloudOS => "☁️",
Type::openEuler => "🦉",
Type::openSUSE => "🦎",
Type::OracleLinux => "🦴",
Type::Pop => "🍭",
Type::Raspbian => "🍓",
Type::Redhat => "🎩",
Type::RedHatEnterprise => "🎩",
Type::RockyLinux => "💠",
Type::Redox => "🧪",
Type::Solus => "",
Type::SUSE => "🦎",
Type::Ubuntu => "🎯",
Type::Ultramarine => "🔷",
Type::Unknown => "",
Type::Uos => "🐲",
Type::Void => "",
Type::Windows => "🪟",
// Future symbols.
//aosc => " ",
//artix => " ",