mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
10 lines
267 B
Bash
10 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
|