1
0
Fork 0

silence autopyenv

This commit is contained in:
Luca Bilke 2022-08-02 16:11:09 +02:00
parent ecb09bdee5
commit 1e82bbad4e
1 changed files with 2 additions and 2 deletions

View File

@ -3,14 +3,14 @@ function chpwd_activate(){
for pydir in $(ls $PYENV_DIR); do
if [[ $(pwd|sed -e s@/@_@g) =~ "^$pydir" ]]; then
if [ "x$VIRTUAL_ENV" != "x$PYENV_DIR/$pydir" ]; then
echo "Activating virtual env $pydir"
# echo "Activating virtual env $pydir"
source "$PYENV_DIR/$pydir/bin/activate"
return
fi
fi
done
if [ "x$VIRTUAL_ENV" != "x" ]; then
echo "Deactivating virtual env $VIRTUAL_ENV"
# echo "Deactivating virtual env $VIRTUAL_ENV"
deactivate
fi
}