summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2019-12-13 20:55:20 +0100
committerMatan Kushner <hello@matchai.me>2019-12-13 14:55:20 -0500
commit6724ce5bb5495f0a04b98abf9087cafb9866e8fe (patch)
treeb8686ec49a9c2f091cc2473d0a57d41b4d2f876f
parent3dd7f66ffc12b1e8ac669b0d5005a2fdbac8f1f0 (diff)
fix(powershell): % sign was prefixed with ` (#730)
-rw-r--r--src/modules/battery.rs1
-rw-r--r--src/modules/memory_usage.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/battery.rs b/src/modules/battery.rs
index 2e6d2d646..8c651a954 100644
--- a/src/modules/battery.rs
+++ b/src/modules/battery.rs
@@ -8,7 +8,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
let percentage_char = match shell.as_str() {
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
- "powershell" => "`%",
_ => "%",
};
diff --git a/src/modules/memory_usage.rs b/src/modules/memory_usage.rs
index e9bd11ac0..5a160ee48 100644
--- a/src/modules/memory_usage.rs
+++ b/src/modules/memory_usage.rs
@@ -22,7 +22,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
let percent_sign = match shell.as_str() {
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
- "powershell" => "`%",
_ => "%",
};