Skip to content

Commit 6724ce5

Browse files
davidknamatchai
authored andcommitted
fix(powershell): % sign was prefixed with ` (starship#730)
1 parent 3dd7f66 commit 6724ce5

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/modules/battery.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
88
let shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
99
let percentage_char = match shell.as_str() {
1010
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
11-
"powershell" => "`%",
1211
_ => "%",
1312
};
1413

src/modules/memory_usage.rs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
2222
let shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
2323
let percent_sign = match shell.as_str() {
2424
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
25-
"powershell" => "`%",
2625
_ => "%",
2726
};
2827

0 commit comments

Comments
 (0)