You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I create a new Python virtualenv using python3 -m env --prompt test .venv and activate it by source .venv/bin/activate, the prompt shows ( .venv ) instead of ( test ).
This can be resolved by changing function _omb_prompt_get_virtualenv to:
function _omb_prompt_get_virtualenv {
virtualenv=
[[ ${VIRTUAL_ENV-} ]] || return 1
if [[ -n $VIRTUAL_ENV_PROMPT ]]; then
_omb_prompt_format virtualenv "$VIRTUAL_ENV_PROMPT" OMB_PROMPT_VIRTUALENV:VIRTUALENV_THEME_PROMPT
else
_omb_prompt_format virtualenv "$(basename "$VIRTUAL_ENV")" OMB_PROMPT_VIRTUALENV:VIRTUALENV_THEME_PROMPT
fi
}
The text was updated successfully, but these errors were encountered:
If I create a new Python virtualenv using
python3 -m env --prompt test .venv
and activate it bysource .venv/bin/activate
, the prompt shows( .venv )
instead of( test )
.This can be resolved by changing
function _omb_prompt_get_virtualenv
to:The text was updated successfully, but these errors were encountered: