1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-21 21:30:09 +00:00

fix(virtualenv): quote % in virtualenv_prompt_info

This commit is contained in:
Marc Cornellà 2021-12-26 20:43:54 +01:00
parent e7390a8603
commit 3e9fe6e772
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

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