Python environment prefix can be configured

This commit is contained in:
Emmanuel BENOîT 2022-10-22 11:18:31 +02:00
parent 28069bac2f
commit 1145bd37e9

View file

@ -230,6 +230,7 @@ sub default_theme
'git_stash_fg' => -1 ,
# Python virtual environment section colors
'pyenv_text' => 'PY:',
'pyenv_fg' => -1,
'pyenv_bg' => -1,
};
@ -1137,8 +1138,11 @@ sub render_pyenv
return {
bg => themed 'pyenv_bg' ,
content => [
{fg=>themed 'pyenv_fg'} , 'PY:' ,
{style=>'b'}, $env , {style=>'none'},
{fg=>themed 'pyenv_fg'} ,
(themed pyenv_text) ,
{style=>'b'},
$env ,
{style=>'none'},
] ,
};
}