From 6e179f24ab606f5c38d12b333771b4ba6b087eba Mon Sep 17 00:00:00 2001 From: Casey McGinty Date: Mon, 30 Apr 2018 22:22:10 -0700 Subject: [PATCH] Export VIRTUAL_ENV_DISABLE_PROMPT when enabling virutalenv Adding `export` ensures the define is available in the shell so pyenv or virtualenvwrapper do not duplicate the virtualenv name on the prompt. --- modules/python/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index b7c2027..4bd38ad 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -94,7 +94,7 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \ export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}" # Disable the virtualenv prompt. - VIRTUAL_ENV_DISABLE_PROMPT=1 + export VIRTUAL_ENV_DISABLE_PROMPT=1 # Create a sorted array of available virtualenv related 'pyenv' commands to # look for plugins of interest. Scanning shell '$path' isn't enough as they