don't overwrite the WORKON_HOME env var if the user has already set it

This commit is contained in:
eukaryote 2014-10-10 22:39:13 -07:00
parent 7629171239
commit b2d84afacf
1 changed files with 1 additions and 1 deletions

View File

@ -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