2012-07-12 03:40:12 +00:00
|
|
|
function virtualenv_prompt_info(){
|
2013-06-08 17:02:32 +00:00
|
|
|
if [[ -n $VIRTUAL_ENV ]]; then
|
|
|
|
printf "%s[%s] " "%{${fg[yellow]}%}" ${${VIRTUAL_ENV}:t}
|
2012-07-12 03:40:12 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
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
|