mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-26 03:27:30 +00:00
fix: Add a missing ' ' to the end of the python prompt (#2248)
Co-authored-by: Chris Rose <offline@offby1.net>
This commit is contained in:
parent
3513aae3ed
commit
aa7a8056bb
@ -2128,7 +2128,7 @@ By default the module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
|
||||
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\))]($style)'` | The format for the module. |
|
||||
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | The format for the module. |
|
||||
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
|
||||
| `style` | `"yellow bold"` | The style for the module. |
|
||||
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
|
||||
|
@ -22,7 +22,7 @@ impl<'a> Default for PythonConfig<'a> {
|
||||
pyenv_version_name: false,
|
||||
pyenv_prefix: "pyenv ",
|
||||
python_binary: VecOr(vec!["python", "python3", "python2"]),
|
||||
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\))]($style)",
|
||||
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\) )]($style)",
|
||||
style: "yellow bold",
|
||||
symbol: "🐍 ",
|
||||
disabled: false,
|
||||
|
@ -313,7 +313,7 @@ mod tests {
|
||||
|
||||
let expected = Some(format!(
|
||||
"via {}",
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (my_venv)")
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (my_venv) ")
|
||||
));
|
||||
|
||||
assert_eq!(actual, expected);
|
||||
@ -331,7 +331,7 @@ mod tests {
|
||||
|
||||
let expected = Some(format!(
|
||||
"via {}",
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (my_venv)")
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (my_venv) ")
|
||||
));
|
||||
|
||||
assert_eq!(actual, expected);
|
||||
@ -358,7 +358,7 @@ prompt = 'foo'
|
||||
|
||||
let expected = Some(format!(
|
||||
"via {}",
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (foo)")
|
||||
Color::Yellow.bold().paint("🐍 v3.8.0 (foo) ")
|
||||
));
|
||||
|
||||
assert_eq!(actual, expected);
|
||||
|
Loading…
Reference in New Issue
Block a user