mirror of
https://github.com/starship/starship.git
synced 2024-11-25 17:54:08 +01:00
fix(bun): change default icon (#5880)
* feat: change bun icon #5871 * fix: reverts docs
This commit is contained in:
parent
df477694d3
commit
be4e97c2d9
4
.github/config-schema.json
vendored
4
.github/config-schema.json
vendored
@ -94,7 +94,7 @@
|
|||||||
"disabled": false,
|
"disabled": false,
|
||||||
"format": "via [$symbol($version )]($style)",
|
"format": "via [$symbol($version )]($style)",
|
||||||
"style": "bold red",
|
"style": "bold red",
|
||||||
"symbol": "🍞 ",
|
"symbol": "🥟 ",
|
||||||
"version_format": "v${raw}"
|
"version_format": "v${raw}"
|
||||||
},
|
},
|
||||||
"allOf": [
|
"allOf": [
|
||||||
@ -2119,7 +2119,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"symbol": {
|
"symbol": {
|
||||||
"default": "🍞 ",
|
"default": "🥟 ",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -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. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
|
@ -23,7 +23,7 @@ impl<'a> Default for BunConfig<'a> {
|
|||||||
BunConfig {
|
BunConfig {
|
||||||
format: "via [$symbol($version )]($style)",
|
format: "via [$symbol($version )]($style)",
|
||||||
version_format: "v${raw}",
|
version_format: "v${raw}",
|
||||||
symbol: "🍞 ",
|
symbol: "🥟 ",
|
||||||
style: "bold red",
|
style: "bold red",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
detect_extensions: vec![],
|
detect_extensions: vec![],
|
||||||
|
@ -89,7 +89,7 @@ mod tests {
|
|||||||
let dir = tempfile::tempdir()?;
|
let dir = tempfile::tempdir()?;
|
||||||
File::create(dir.path().join("bun.lockb"))?.sync_all()?;
|
File::create(dir.path().join("bun.lockb"))?.sync_all()?;
|
||||||
let actual = ModuleRenderer::new("bun").path(dir.path()).collect();
|
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);
|
assert_eq!(expected, actual);
|
||||||
dir.close()
|
dir.close()
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ mod tests {
|
|||||||
.path(dir.path())
|
.path(dir.path())
|
||||||
.cmd("bun --version", None)
|
.cmd("bun --version", None)
|
||||||
.collect();
|
.collect();
|
||||||
let expected = Some(format!("via {}", Color::Red.bold().paint("🍞 ")));
|
let expected = Some(format!("via {}", Color::Red.bold().paint("🥟 ")));
|
||||||
assert_eq!(expected, actual);
|
assert_eq!(expected, actual);
|
||||||
dir.close()
|
dir.close()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user