Open Ochoja opened 4 months ago
prompt_virtualenv() { if [[ -n $CONDA_PROMPT_MODIFIER ]]; then prompt_segment black default ${CONDA_PROMPT_MODIFIER:1:-2} elif [[ -n $VIRTUAL_ENV ]]; then local venv_name venv_name=$(basename "$VIRTUAL_ENV") prompt_segment black default "($venv_name)" fi }
This works for me, I hope it helps you too
When a python virtual environment is activated, It does not display name of virtual environment in brackets like in bash