Skip to content

Commit

Permalink
fix: replace emoji for cmake and erlang (starship#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai authored and chipbuster committed Jan 14, 2021
1 parent f2caad1 commit 67dbf28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ The `cmake` module shows the currently installed version of CMake if:
| Option | Default | Description |
| ---------- | ---------------------------------- | -------------------------------------------- |
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
| `symbol` | `"🛆 "` | The symbol used before the version of cmake. |
| `symbol` | `" "` | The symbol used before the version of cmake. |
| `style` | `"bold blue"` | The style for the module. |
| `disabled` | `false` | Disables the `cmake` module. |

Expand Down Expand Up @@ -920,7 +920,7 @@ The module will be shown if any of the following conditions are met:

| Option | Default | Description |
| ---------- | ---------------------------------- | -------------------------------------------------------- |
| `symbol` | `"🖧 "` | The symbol used before displaying the version of erlang. |
| `symbol` | `" "` | The symbol used before displaying the version of erlang. |
| `style` | `"bold red"` | The style for the module. |
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
| `disabled` | `false` | Disables the `erlang` module. |
Expand Down
2 changes: 1 addition & 1 deletion src/configs/cmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for CMakeConfig<'a> {
fn new() -> Self {
CMakeConfig {
format: "via [$symbol$version]($style) ",
symbol: "🛆 ",
symbol: " ",
style: "bold blue",
disabled: false,
}
Expand Down
2 changes: 1 addition & 1 deletion src/configs/erlang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for ErlangConfig<'a> {
fn new() -> Self {
ErlangConfig {
format: "via [$symbol$version]($style) ",
symbol: "🖧 ",
symbol: " ",
style: "bold red",
disabled: false,
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/cmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod tests {
let dir = tempfile::tempdir()?;
File::create(dir.path().join("CMakeLists.txt"))?.sync_all()?;
let actual = ModuleRenderer::new("cmake").path(dir.path()).collect();
let expected = Some(format!("via {} ", Color::Blue.bold().paint("🛆 v3.17.3")));
let expected = Some(format!("via {} ", Color::Blue.bold().paint(" v3.17.3")));
assert_eq!(expected, actual);
dir.close()
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/erlang.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("rebar.config"))?.sync_all()?;

let expected = Some(format!("via {} ", Color::Red.bold().paint("🖧 22.1.3")));
let expected = Some(format!("via {} ", Color::Red.bold().paint(" 22.1.3")));
let output = ModuleRenderer::new("erlang").path(dir.path()).collect();

assert_eq!(output, expected);
Expand Down

0 comments on commit 67dbf28

Please sign in to comment.