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 ,
|
'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'},
|
||||||
] ,
|
] ,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue