mirror of
https://github.com/nushell/nushell
synced 2025-01-13 13:49:21 +00:00
FIX: add a space after the default left prompt (#9074)
# Description when running `nushell` with the `--no-config-file` option, the left prompt does not have a space to separate the directory path from the user input. in this PR i add a space there to make the prompt easier to read when using `--no-config-file`! # User-Facing Changes before: https://asciinema.org/a/581733 after: https://asciinema.org/a/581734 # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - ⚫ `toolkit test` - ⚫ `toolkit test stdlib` # After Submitting ``` $nothing ```
This commit is contained in:
parent
a528c043fe
commit
a78cd6e231
1 changed files with 4 additions and 2 deletions
|
@ -106,11 +106,13 @@ impl Prompt for NushellPrompt {
|
||||||
prompt_string.replace('\n', "\r\n").into()
|
prompt_string.replace('\n', "\r\n").into()
|
||||||
} else {
|
} else {
|
||||||
let default = DefaultPrompt::default();
|
let default = DefaultPrompt::default();
|
||||||
default
|
let prompt = default
|
||||||
.render_prompt_left()
|
.render_prompt_left()
|
||||||
.to_string()
|
.to_string()
|
||||||
.replace('\n', "\r\n")
|
.replace('\n', "\r\n")
|
||||||
.into()
|
+ " ";
|
||||||
|
|
||||||
|
prompt.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue