virtualenv.plugin.zsh 255 Bytes
Newer Older
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
}

6
# disables prompt mangling in virtual_env/bin/activate
7
export VIRTUAL_ENV_DISABLE_PROMPT=1