virtualenv.plugin.zsh 263 B

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