fix(powershell): % sign was prefixed with ` (#730)

This commit is contained in:
David Knaack 2019-12-13 20:55:20 +01:00 committed by Matan Kushner
parent 3dd7f66ffc
commit 6724ce5bb5
2 changed files with 0 additions and 2 deletions

View File

@ -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" => "`%",
_ => "%",
};

View File

@ -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" => "`%",
_ => "%",
};