X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=1b15d83ddc834e9e9dbc94c1dab2be441c5be99f;hb=a1c52fab25615cd9e02bf8595d98e8ec88eb4054;hp=f62347b22db131518052f1767e242e62f7851abb;hpb=9169df51588c4172babd3233ca28ed01b0f6ef92;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 - "$@"; }