Python environment prefix can be configured
This commit is contained in:
parent
28069bac2f
commit
1145bd37e9
1 changed files with 6 additions and 2 deletions
|
@ -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'},
|
||||
] ,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue