diff --git a/src/cli.rs b/src/cli.rs index 42a9aa931..6e92b3818 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -376,7 +376,7 @@ pub async fn cli() -> Result<(), Box> { #[cfg(not(feature = "starship-prompt"))] { &format!( - "{}{}> ", + "{}{}\x1b[m> ", cwd, match current_branch() { Some(s) => format!("({})", s), diff --git a/src/shell/helper.rs b/src/shell/helper.rs index 6fb454435..fa6c0bb67 100644 --- a/src/shell/helper.rs +++ b/src/shell/helper.rs @@ -58,7 +58,7 @@ impl Hinter for Helper { impl Highlighter for Helper { fn highlight_prompt<'b, 's: 'b, 'p: 'b>(&'s self, prompt: &'p str, _: bool) -> Cow<'b, str> { - Owned("\x1b[32m".to_owned() + &prompt[0..prompt.len() - 2] + "\x1b[m> ") + Owned("\x1b[32m".to_owned() + &prompt + "\x1b[m") } fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> {