Skip to content

Commit

Permalink
fix(bun): change default icon (#5880)
Browse files Browse the repository at this point in the history
* feat: change bun icon #5871

* fix: reverts docs
  • Loading branch information
Ramiellll committed Mar 30, 2024
1 parent df47769 commit be4e97c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"disabled": false,
"format": "via [$symbol($version )]($style)",
"style": "bold red",
"symbol": "馃崬 ",
"symbol": "馃 ",
"version_format": "v${raw}"
},
"allOf": [
Expand Down Expand Up @@ -2119,7 +2119,7 @@
"type": "string"
},
"symbol": {
"default": "馃崬 ",
"default": "馃 ",
"type": "string"
},
"style": {
Expand Down
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion src/configs/bun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![],
Expand Down
4 changes: 2 additions & 2 deletions src/modules/bun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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()
}
Expand Down

0 comments on commit be4e97c

Please sign in to comment.