pixegami / terminal-profile

This is my profile for UNIX (MacOS/Linux) terminals.
551 stars 157 forks source link

Activated virtual env is not shown #10

Closed biohazard2117 closed 8 months ago

biohazard2117 commented 8 months ago

When I activate a virtual environment it doesn't show the name of the virtual environment that is currently activated.

ettobo commented 8 months ago

Change CONDA_PROMPT_MODIFIER to VIRTUAL_ENV in ~/.zshrc:

# Virtualenv: current working virtualenv
prompt_virtualenv() {
  if [[ -n $VIRTUAL_ENV ]]; then 
    prompt_segment black default $(basename ${VIRTUAL_ENV})
  fi
} # replaced CONDA_PROMPT_MODIFIER with VIRTUAL_ENV
biohazard2117 commented 8 months ago

Worked fine thanks