virtualenv.plugin.zsh 257 B

1234567
  1. function virtualenv_prompt_info(){
  2. [[ -n ${VIRTUAL_ENV} ]] || return
  3. echo "${ZSH_THEME_VIRTUALENV_PREFIX:=[}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX:=]}"
  4. }
  5. # disables prompt mangling in virtual_env/bin/activate
  6. export VIRTUAL_ENV_DISABLE_PROMPT=1