2012-07-12 03:40:12 +00:00
|
|
|
function virtualenv_prompt_info(){
|
2013-10-15 12:34:03 +00:00
|
|
|
[[ -n ${VIRTUAL_ENV} ]] || return
|
|
|
|
echo "${ZSH_THEME_VIRTUALENV_PREFIX:=[}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX:=]}"
|
2012-07-12 03:40:12 +00:00
|
|
|
}
|
|
|
|
|
2013-06-08 17:02:32 +00:00
|
|
|
# disables prompt mangling in virtual_env/bin/activate
|
2012-07-12 03:40:12 +00:00
|
|
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|