mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-14 09:50:08 +00:00
6e56784179
Fixes #9763
7 lines
255 B
Bash
7 lines
255 B
Bash
function virtualenv_prompt_info(){
|
|
[[ -n ${VIRTUAL_ENV} ]] || return
|
|
echo "${ZSH_THEME_VIRTUALENV_PREFIX=[}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX=]}"
|
|
}
|
|
|
|
# disables prompt mangling in virtual_env/bin/activate
|
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|