fix(buf): broken icon on windows 10 (#4689)
Closes https://github.com/starship/starship/issues/4608
This commit is contained in:
parent
c9de67bd66
commit
7341607c29
|
@ -73,7 +73,7 @@
|
|||
"disabled": false,
|
||||
"format": "with [$symbol($version )]($style)",
|
||||
"style": "bold blue",
|
||||
"symbol": "🦬 ",
|
||||
"symbol": "🐃 ",
|
||||
"version_format": "v${raw}"
|
||||
},
|
||||
"allOf": [
|
||||
|
@ -1854,7 +1854,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"symbol": {
|
||||
"default": "🦬 ",
|
||||
"default": "🐃 ",
|
||||
"type": "string"
|
||||
},
|
||||
"style": {
|
||||
|
|
|
@ -558,7 +558,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
|
|||
| ------------------- | ----------------------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. |
|
||||
| `version_format` | `'v${raw}'` | The version format. |
|
||||
| `symbol` | `'🦬 '` | The symbol used before displaying the version of Buf. |
|
||||
| `symbol` | `'🐃 '` | The symbol used before displaying the version of Buf. |
|
||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||
| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | Which filenames should trigger this module. |
|
||||
| `detect_folders` | `[]` | Which folders should trigger this modules. |
|
||||
|
|
|
@ -23,7 +23,7 @@ impl<'a> Default for BufConfig<'a> {
|
|||
BufConfig {
|
||||
format: "with [$symbol($version )]($style)",
|
||||
version_format: "v${raw}",
|
||||
symbol: "🦬 ",
|
||||
symbol: "🐃 ",
|
||||
style: "bold blue",
|
||||
disabled: false,
|
||||
detect_extensions: vec![],
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use super::{Context, Module, ModuleConfig};
|
||||
|
||||
use crate::configs::buf::BufConfig;
|
||||
use crate::formatter::StringFormatter;
|
||||
use crate::formatter::VersionFormatter;
|
||||
|
@ -103,8 +102,10 @@ mod tests {
|
|||
.sync_all()
|
||||
.unwrap();
|
||||
let actual = ModuleRenderer::new("buf").path(dir.path()).collect();
|
||||
let expected = Some(format!("with {}", Color::Blue.bold().paint("🦬 v1.0.0 ")));
|
||||
|
||||
let expected = Some(format!("with {}", Color::Blue.bold().paint("🐃 v1.0.0 ")));
|
||||
assert_eq!(expected, actual);
|
||||
|
||||
dir.close().unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue