1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-21 16:58:00 +00:00

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

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