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() {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue