From b2d84afacf4e3477120e7397354457e58b3e3d4b Mon Sep 17 00:00:00 2001 From: eukaryote Date: Fri, 10 Oct 2014 22:39:13 -0700 Subject: [PATCH] don't overwrite the WORKON_HOME env var if the user has already set it --- 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 b373028..458253b 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -38,7 +38,7 @@ fi zstyle -t ':prezto:module:python' skip-virtualenvwrapper-init if (( $? && $+commands[virtualenvwrapper.sh] )); then # Set the directory where virtual environments are stored. - export WORKON_HOME="$HOME/.virtualenvs" + export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}" # Disable the virtualenv prompt. VIRTUAL_ENV_DISABLE_PROMPT=1