mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(powershell): % sign was prefixed with ` (#730)
This commit is contained in:
committed by
Matan Kushner
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 shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
|
||||||
let percentage_char = match shell.as_str() {
|
let percentage_char = match shell.as_str() {
|
||||||
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
|
"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 shell = std::env::var("STARSHIP_SHELL").unwrap_or_default();
|
||||||
let percent_sign = match shell.as_str() {
|
let percent_sign = match shell.as_str() {
|
||||||
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
|
"zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc`
|
||||||
"powershell" => "`%",
|
|
||||||
_ => "%",
|
_ => "%",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user