forked from extern/nushell
Add space to special prompt chars (#2122)
So spaces don't have to be escaped with quotes in the config.toml
This commit is contained in:
parent
34e1e6e426
commit
32f18536e1
@ -64,6 +64,7 @@ fn str_to_character(s: &str) -> Option<String> {
|
||||
match s {
|
||||
"newline" | "enter" | "nl" => Some("\n".into()),
|
||||
"tab" => Some("\t".into()),
|
||||
"sp" | "space" => Some(" ".into()),
|
||||
// Unicode names came from https://www.compart.com/en/unicode
|
||||
// Private Use Area (U+E000-U+F8FF)
|
||||
"branch" => Some('\u{e0a0}'.to_string()), //
|
||||
|
Loading…
Reference in New Issue
Block a user