mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-29 04:23:26 +00:00
fix(powershell): % sign was prefixed with ` (#730)
This commit is contained in:
parent
3dd7f66ffc
commit
6724ce5bb5
@ -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" => "`%",
|
||||
_ => "%",
|
||||
};
|
||||
|
||||
|
@ -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" => "`%",
|
||||
_ => "%",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user