Skip to content

Commit

Permalink
fix: remove superfluous bash prompt characters (#301)
Browse files Browse the repository at this point in the history
Those escaped brackets are visible in my prompt, and they break
arrow-key commandline editing
  • Loading branch information
alexandra-lambda authored Jan 8, 2025
1 parent 70920d8 commit fe704f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shell/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ where
match self.shell_kind {
ShellKind::Fish | ShellKind::Xonsh => write!(f, "{content}"),
ShellKind::Zsh => write!(f, "%{{{content}%}}"),
_ => write!(f, "\\[{content}\\]"),
ShellKind::Bash => write!(f, "\\[{content}\\]"),
_ => write!(f, "{content}"),
}
}

Expand Down

0 comments on commit fe704f6

Please sign in to comment.