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