From ee885d42decf58ba90ddff250bb9c05f66009397 Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Fri, 28 Sep 2018 14:04:20 -0700 Subject: [PATCH] python: use pure's magic value for VIRTUAL_ENV_DISABLE_PROMPT Fixes #1627 --- modules/python/init.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 28f671e0cf..f90156fd2d 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -93,8 +93,11 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \ # Set the directory where virtual environments are stored. export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}" - # Disable the virtualenv prompt. - export VIRTUAL_ENV_DISABLE_PROMPT=1 + # Disable the virtualenv prompt. Note that we use the magic value used by the + # pure prompt because there's some additional logic in that prompt which tries + # to figure out if a user set this variable and disable the python portion of + # that prompt based on it which is the exact opposite of what we want to do. + export VIRTUAL_ENV_DISABLE_PROMPT=12 # Create a sorted array of available virtualenv related 'pyenv' commands to # look for plugins of interest. Scanning shell '$path' isn't enough as they