virtualenv.plugin.zsh 228 Bytes
Newer Older
1
function virtualenv_prompt_info(){
2
3
  if [[ -n $VIRTUAL_ENV ]]; then
    printf "%s[%s] " "%{${fg[yellow]}%}" ${${VIRTUAL_ENV}:t}
4
5
6
  fi
}

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