1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-24 08:53:41 +08:00
ohmyzsh/plugins/virtualenv/virtualenv.plugin.zsh
2022-01-03 13:50:51 +01:00

8 lines
263 B
Bash

function virtualenv_prompt_info(){
[[ -n ${VIRTUAL_ENV} ]] || return
echo "${ZSH_THEME_VIRTUALENV_PREFIX=[}${VIRTUAL_ENV:t:gs/%/%%}${ZSH_THEME_VIRTUALENV_SUFFIX=]}"
}
# disables prompt mangling in virtual_env/bin/activate
export VIRTUAL_ENV_DISABLE_PROMPT=1