X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=1b15d83ddc834e9e9dbc94c1dab2be441c5be99f;hb=2fe998af793914f5c014bb7e732e7ed1b47c678a;hp=f62347b22db131518052f1767e242e62f7851abb;hpb=74d555ce276032da3e01763bd2a6feff6c456f05;p=dotfiles.git diff --git a/.shellrc b/.shellrc index f62347b..1b15d83 100644 --- a/.shellrc +++ b/.shellrc @@ -160,9 +160,9 @@ if test -n "$BASH_VERSION"; then source virtualenvwrapper_lazy.sh 2>/dev/null - #if [ -n "$VIRTUAL_ENV" ]; then - # . "$VIRTUAL_ENV/bin/activate" - #fi + if [ -n "$VIRTUAL_ENV" ] && ! type deactivate >/dev/null 2>&1; then + . "$VIRTUAL_ENV/bin/activate" + fi elif test -n "$KSH_VERSION" -o -n "$FCEDIT"; then back() { cd - "$@"; }