virtualenv.plugin.zsh 228 B

12345678
  1. function virtualenv_prompt_info(){
  2. if [[ -n $VIRTUAL_ENV ]]; then
  3. printf "%s[%s] " "%{${fg[yellow]}%}" ${${VIRTUAL_ENV}:t}
  4. fi
  5. }
  6. # disables prompt mangling in virtual_env/bin/activate
  7. export VIRTUAL_ENV_DISABLE_PROMPT=1