dotfiles/zsh/.local/share/oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh

8 lines
263 B
Bash
Raw Normal View History

2024-06-19 00:06:56 +02:00
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