Fix zsh auto-activate venv
This commit is contained in:
parent
1e2c3981b5
commit
696efe64db
1 changed files with 4 additions and 4 deletions
|
@ -80,15 +80,15 @@ export VISUAL="vim"
|
||||||
|
|
||||||
function cd() {
|
function cd() {
|
||||||
builtin cd $@;
|
builtin cd $@;
|
||||||
if [ -f env/bin/activate ]
|
if [ -f venv/bin/activate ]
|
||||||
then
|
then
|
||||||
source env/bin/activate
|
source venv/bin/activate
|
||||||
elif [ -f bin/activate ]
|
elif [ -f bin/activate ]
|
||||||
then
|
then
|
||||||
source bin/activate
|
source bin/activate
|
||||||
elif [ -f ../env/bin/activate ]
|
elif [ -f ../venv/bin/activate ]
|
||||||
then
|
then
|
||||||
source ../env/bin/activate
|
source ../venv/bin/activate
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue