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