summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamy <61938423+Ramiellll@users.noreply.github.com>2024-03-30 09:38:19 +0100
committerGitHub <noreply@github.com>2024-03-30 09:38:19 +0100
commitbe4e97c2d9169cbf0bc30e271dd4ba07530dc46f (patch)
treecc3168b7c8306ac30732c75d3bcfd8fc0cba9425
parentdf477694d34d7cf80e72b14e4ccb50dfab04f854 (diff)
fix(bun): change default icon (#5880)
* feat: change bun icon #5871 * fix: reverts docs
-rw-r--r--.github/config-schema.json4
-rw-r--r--docs/config/README.md2
-rw-r--r--src/configs/bun.rs2
-rw-r--r--src/modules/bun.rs4
4 files changed, 6 insertions, 6 deletions
diff --git a/.github/config-schema.json b/.github/config-schema.json
index 743f00ed2..c3a6f70cf 100644
--- a/.github/config-schema.json
+++ b/.github/config-schema.json
@@ -94,7 +94,7 @@
"disabled": false,
"format": "via [$symbol($version )]($style)",
"style": "bold red",
- "symbol": "🍞 ",
+ "symbol": "🥟 ",
"version_format": "v${raw}"
},
"allOf": [
@@ -2119,7 +2119,7 @@
"type": "string"
},
"symbol": {
- "default": "🍞 ",
+ "default": "🥟 ",
"type": "string"
},
"style": {
diff --git a/docs/config/README.md b/docs/config/README.md
index 47f456760..0c08d076d 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -628,7 +628,7 @@ By default the module will be shown if any of the following conditions are met:
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
diff --git a/src/configs/bun.rs b/src/configs/bun.rs
index 4d527d58e..db50a50c3 100644
--- a/src/configs/bun.rs
+++ b/src/configs/bun.rs
@@ -23,7 +23,7 @@ impl<'a> Default for BunConfig<'a> {
BunConfig {
format: "via [$symbol($version )]($style)",
version_format: "v${raw}",
- symbol: "🍞 ",
+ symbol: "🥟 ",
style: "bold red",
disabled: false,
detect_extensions: vec![],
diff --git a/src/modules/bun.rs b/src/modules/bun.rs
index e2ebf1642..b83c5cb2d 100644
--- a/src/modules/bun.rs
+++ b/src/modules/bun.rs
@@ -89,7 +89,7 @@ mod tests {
let dir = tempfile::tempdir()?;
File::create(dir.path().join("bun.lockb"))?.sync_all()?;
let actual = ModuleRenderer::new("bun").path(dir.path()).collect();
- let expected = Some(format!("via {}", Color::Red.bold().paint("🍞 v0.1.4 ")));
+ let expected = Some(format!("via {}", Color::Red.bold().paint("🥟 v0.1.4 ")));
assert_eq!(expected, actual);
dir.close()
}
@@ -102,7 +102,7 @@ mod tests {
.path(dir.path())
.cmd("bun --version", None)
.collect();
- let expected = Some(format!("via {}", Color::Red.bold().paint("🍞 ")));
+ let expected = Some(format!("via {}", Color::Red.bold().paint("🥟 ")));
assert_eq!(expected, actual);
dir.close()
}