From 783eb3373d4b7541e573f1266a6127b4c6533c6d Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Tue, 13 Oct 2020 18:01:35 -0400 Subject: [PATCH] fix: replace emoji for cmake and erlang (#1787) --- docs/config/README.md | 4 ++-- src/configs/cmake.rs | 2 +- src/configs/erlang.rs | 2 +- src/modules/cmake.rs | 2 +- src/modules/erlang.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index a2be5361..eb7a1747 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -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. | @@ -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. | diff --git a/src/configs/cmake.rs b/src/configs/cmake.rs index 5045786b..df1ed53b 100644 --- a/src/configs/cmake.rs +++ b/src/configs/cmake.rs @@ -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, } diff --git a/src/configs/erlang.rs b/src/configs/erlang.rs index 4fd1b729..368368a9 100644 --- a/src/configs/erlang.rs +++ b/src/configs/erlang.rs @@ -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, } diff --git a/src/modules/cmake.rs b/src/modules/cmake.rs index ec078ce5..3e15eb0c 100644 --- a/src/modules/cmake.rs +++ b/src/modules/cmake.rs @@ -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() } diff --git a/src/modules/erlang.rs b/src/modules/erlang.rs index 8dc593c3..5b2514c0 100644 --- a/src/modules/erlang.rs +++ b/src/modules/erlang.rs @@ -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);