Fix zsh auto-activate venv

This commit is contained in:
Kujiu 2016-12-10 12:55:11 +01:00
parent 1e2c3981b5
commit 696efe64db
No known key found for this signature in database
GPG key ID: F6A8243BF7C8404D

View file

@ -80,15 +80,15 @@ export VISUAL="vim"
function cd() {
builtin cd $@;
if [ -f env/bin/activate ]
if [ -f venv/bin/activate ]
then
source env/bin/activate
source venv/bin/activate
elif [ -f bin/activate ]
then
source bin/activate
elif [ -f ../env/bin/activate ]
elif [ -f ../venv/bin/activate ]
then
source ../env/bin/activate
source ../venv/bin/activate
fi
}