diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2024-03-21 12:39:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 12:39:28 +0100 |
commit | df65b2155f92c03d07cabbcee6c92104a878c963 (patch) | |
tree | 18c5afce7761c29069ed0a1e571a4a9521d5a883 | |
parent | d308e918ee014f4ca9976683e79e819afd8160f7 (diff) |
feat(os): add new os symbols (#5849)
-rw-r--r-- | .github/config-schema.json | 12 | ||||
-rw-r--r-- | docs/config/README.md | 6 | ||||
-rw-r--r-- | docs/public/presets/toml/nerd-font-symbols.toml | 4 | ||||
-rw-r--r-- | docs/public/presets/toml/plain-text-symbols.toml | 6 | ||||
-rw-r--r-- | src/configs/os.rs | 7 | ||||
-rw-r--r-- | src/modules/os.rs | 6 |
6 files changed, 39 insertions, 2 deletions
diff --git a/.github/config-schema.json b/.github/config-schema.json index f1f9c86b4..743f00ed2 100644 --- a/.github/config-schema.json +++ b/.github/config-schema.json @@ -1165,6 +1165,8 @@ "format": "[$symbol]($style)", "style": "bold white", "symbols": { + "AIX": "โฟ ", + "AlmaLinux": "๐ ", "Alpaquita": "๐ ", "Alpine": "๐๏ธ ", "Amazon": "๐ ", @@ -1182,6 +1184,7 @@ "Gentoo": "๐๏ธ ", "HardenedBSD": "๐ก๏ธ ", "Illumos": "๐ฆ ", + "Kali": "๐ ", "Linux": "๐ง ", "Mabox": "๐ฆ ", "Macos": "๐ ", @@ -1199,10 +1202,13 @@ "RedHatEnterprise": "๐ฉ ", "Redhat": "๐ฉ ", "Redox": "๐งช ", + "RockyLinux": "๐ ", "SUSE": "๐ฆ ", "Solus": "โต ", "Ubuntu": "๐ฏ ", + "Ultramarine": "๐ท ", "Unknown": "โ ", + "Void": "๎ ", "Windows": "๐ช ", "openEuler": "๐ฆ ", "openSUSE": "๐ฆ " @@ -4670,6 +4676,8 @@ }, "symbols": { "default": { + "AIX": "โฟ ", + "AlmaLinux": "๐ ", "Alpaquita": "๐ ", "Alpine": "๐๏ธ ", "Amazon": "๐ ", @@ -4687,6 +4695,7 @@ "Gentoo": "๐๏ธ ", "HardenedBSD": "๐ก๏ธ ", "Illumos": "๐ฆ ", + "Kali": "๐ ", "Linux": "๐ง ", "Mabox": "๐ฆ ", "Macos": "๐ ", @@ -4704,10 +4713,13 @@ "RedHatEnterprise": "๐ฉ ", "Redhat": "๐ฉ ", "Redox": "๐งช ", + "RockyLinux": "๐ ", "SUSE": "๐ฆ ", "Solus": "โต ", "Ubuntu": "๐ฏ ", + "Ultramarine": "๐ท ", "Unknown": "โ ", + "Void": "๎ ", "Windows": "๐ช ", "openEuler": "๐ฆ ", "openSUSE": "๐ฆ " diff --git a/docs/config/README.md b/docs/config/README.md index 0719540fd..e7c231fce 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -3173,7 +3173,9 @@ If you would like an operating system to be added, feel free to open a [feature ```toml # This is the default symbols table. [os.symbols] +AIX = "โฟ " Alpaquita = "๐ " +AlmaLinux = "๐ " Alpine = "๐๏ธ " Amazon = "๐ " Android = "๐ค " @@ -3190,6 +3192,7 @@ Garuda = "๐ฆ
" Gentoo = "๐๏ธ " HardenedBSD = "๐ก๏ธ " Illumos = "๐ฆ " +Kali = "๐ " Linux = "๐ง " Mabox = "๐ฆ " Macos = "๐ " @@ -3208,11 +3211,14 @@ Pop = "๐ญ " Raspbian = "๐ " Redhat = "๐ฉ " RedHatEnterprise = "๐ฉ " +RockyLinux = "๐ " Redox = "๐งช " Solus = "โต " SUSE = "๐ฆ " Ubuntu = "๐ฏ " +Ultramarine = "๐ท " Unknown = "โ " +Void = "๎ " Windows = "๐ช " ``` diff --git a/docs/public/presets/toml/nerd-font-symbols.toml b/docs/public/presets/toml/nerd-font-symbols.toml index 540a4fc3f..704b39d15 100644 --- a/docs/public/presets/toml/nerd-font-symbols.toml +++ b/docs/public/presets/toml/nerd-font-symbols.toml @@ -88,6 +88,7 @@ symbol = "๎บ " [os.symbols] Alpaquita = "๎ชข " Alpine = "๏ " +AlmaLinux = "๏ " Amazon = "๏ฐ " Android = "๏
ป " Arch = "๏ " @@ -103,6 +104,7 @@ Garuda = "๓ฐ " Gentoo = "๏ " HardenedBSD = "๓ฐ " Illumos = "๓ฐธ " +Kali = "๏ง " Linux = "๏ " Mabox = "๎ฌฉ " Macos = "๏ " @@ -119,11 +121,13 @@ Pop = "๏ช " Raspbian = "๏ " Redhat = "๏ " RedHatEnterprise = "๏ " +RockyLinux = "๏ซ " Redox = "๓ฐ " Solus = "๓ฐ ณ " SUSE = "๏ " Ubuntu = "๏ " Unknown = "๏ญ " +Void = "๏ฎ " Windows = "๓ฐฒ " [package] diff --git a/docs/public/presets/toml/plain-text-symbols.toml b/docs/public/presets/toml/plain-text-symbols.toml index 3574a2894..90577451e 100644 --- a/docs/public/presets/toml/plain-text-symbols.toml +++ b/docs/public/presets/toml/plain-text-symbols.toml @@ -119,7 +119,9 @@ symbol = "ml " symbol = "opa " [os.symbols] +AIX = "aix " Alpaquita = "alq " +AlmaLinux = "alma " Alpine = "alp " Amazon = "amz " Android = "andr " @@ -136,6 +138,7 @@ Garuda = "garu " Gentoo = "gent " HardenedBSD = "hbsd " Illumos = "lum " +Kali = "kali " Linux = "lnx " Mabox = "mbox " Macos = "mac " @@ -154,11 +157,14 @@ Pop = "pop " Raspbian = "rasp " Redhat = "rhl " RedHatEnterprise = "rhel " +Rocky = "rky " Redox = "redox " Solus = "sol " SUSE = "suse " Ubuntu = "ubnt " +Ultramarine = "ultm " Unknown = "unk " +Void = "void " Windows = "win " [package] diff --git a/src/configs/os.rs b/src/configs/os.rs index 84a5e0e4a..5742a835d 100644 --- a/src/configs/os.rs +++ b/src/configs/os.rs @@ -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, diff --git a/src/modules/os.rs b/src/modules/os.rs index cbc9d1e03..93b83dc70 100644 --- a/src/modules/os.rs +++ b/src/modules/os.rs @@ -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 => "๐ช ", _ => "", }; |