silence autopyenv
This commit is contained in:
parent
ecb09bdee5
commit
1e82bbad4e
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@ function chpwd_activate(){
|
||||||
for pydir in $(ls $PYENV_DIR); do
|
for pydir in $(ls $PYENV_DIR); do
|
||||||
if [[ $(pwd|sed -e s@/@_@g) =~ "^$pydir" ]]; then
|
if [[ $(pwd|sed -e s@/@_@g) =~ "^$pydir" ]]; then
|
||||||
if [ "x$VIRTUAL_ENV" != "x$PYENV_DIR/$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"
|
source "$PYENV_DIR/$pydir/bin/activate"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "x$VIRTUAL_ENV" != "x" ]; then
|
if [ "x$VIRTUAL_ENV" != "x" ]; then
|
||||||
echo "Deactivating virtual env $VIRTUAL_ENV"
|
# echo "Deactivating virtual env $VIRTUAL_ENV"
|
||||||
deactivate
|
deactivate
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue