mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix: Separate Python version string and env name (#548)
This commit is contained in:
committed by
Matan Kushner
parent
e2e7277630
commit
27fad02837
@@ -58,7 +58,7 @@ fn python_module(mut module: Module, pyenv_version_name: bool, python_version: S
|
||||
let formatted_version = format_python_version(&python_version);
|
||||
module.new_segment("version", &formatted_version);
|
||||
get_python_virtual_env()
|
||||
.map(|virtual_env| module.new_segment("virtualenv", &format!("({})", virtual_env)));
|
||||
.map(|virtual_env| module.new_segment("virtualenv", &format!(" ({})", virtual_env)));
|
||||
};
|
||||
|
||||
module
|
||||
|
||||
Reference in New Issue
Block a user