homes/common/.oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh
Christophe Buffenoir 16b4350cdb Initial commit
2013-05-02 12:38:30 +02:00

9 lines
267 B
Bash

function virtualenv_prompt_info(){
local virtualenv_path="$VIRTUAL_ENV"
if [[ -n $virtualenv_path ]]; then
local virtualenv_name=`basename $virtualenv_path`
printf "%s[%s] " "%{${fg[yellow]}%}" $virtualenv_name
fi
}
export VIRTUAL_ENV_DISABLE_PROMPT=1