1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 02:19:25 +00:00

Set the virtualenvwrapper $WORKON_HOME variable

This commit is contained in:
Sorin Ionescu
2012-09-03 10:53:19 -04:00
parent 6e664690ef
commit f8689401de
2 changed files with 10 additions and 6 deletions

View File

@ -23,9 +23,13 @@ else
fi
# Load virtualenvwrapper into the shell session.
if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper_lazy.sh] )); then
if (( $+commands[virtualenvwrapper_lazy.sh] )); then
# Set the directory where virtual environments are stored.
export WORKON_HOME=$HOME/.virtualenvs
# Disable the virtualenv prompt.
VIRTUAL_ENV_DISABLE_PROMPT=1
source "$commands[virtualenvwrapper_lazy.sh]"
fi