mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-25 19:21:08 +00:00
fix: update continuation prompt to be more minimal (#3374)
Co-authored-by: Kevin Song <chips@ksong.dev>
This commit is contained in:
parent
4deaa02d6f
commit
800fbec0cf
@ -145,7 +145,7 @@ Produces a prompt like the following:
|
||||
|
||||
Some shells support a continuation prompt along with the normal prompt. This prompt is rendered instead of the normal prompt when the user has entered an incomplete statement (such as a single left parenthesis or quote).
|
||||
|
||||
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[❯](bold yellow)"`.
|
||||
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[∙](bright-black) "`.
|
||||
|
||||
Note: `continuation_prompt` should be set to a literal string without any variables.
|
||||
|
||||
|
@ -524,7 +524,7 @@ mod tests {
|
||||
|
||||
let config = toml::toml! {
|
||||
untracked.value = "x"
|
||||
modified = { value = "•", style = "red" }
|
||||
modified = { value = "∙", style = "red" }
|
||||
};
|
||||
|
||||
let mut git_status_config = TestConfig {
|
||||
@ -549,7 +549,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
git_status_config.modified,
|
||||
SegmentDisplayConfig {
|
||||
value: "•",
|
||||
value: "∙",
|
||||
style: Color::Red.normal(),
|
||||
}
|
||||
);
|
||||
|
@ -159,7 +159,7 @@ impl<'a> Default for FullConfig<'a> {
|
||||
Self {
|
||||
format: "$all".to_string(),
|
||||
right_format: "".to_string(),
|
||||
continuation_prompt: "[❯](bold yellow)".to_string(),
|
||||
continuation_prompt: "[∙](bright-black) ".to_string(),
|
||||
scan_timeout: 30,
|
||||
command_timeout: 500,
|
||||
add_newline: true,
|
||||
|
@ -96,7 +96,7 @@ impl<'a> Default for StarshipRootConfig {
|
||||
StarshipRootConfig {
|
||||
format: "$all".to_string(),
|
||||
right_format: "".to_string(),
|
||||
continuation_prompt: "[❯](bold yellow)".to_string(),
|
||||
continuation_prompt: "[∙](bright-black) ".to_string(),
|
||||
scan_timeout: 30,
|
||||
command_timeout: 500,
|
||||
add_newline: true,
|
||||
|
Loading…
Reference in New Issue
Block a user