X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=1350fcd020dfd1fe2b7af017078cece4aadb213d;hp=ac5325ef876ab5e60e4f6877230422e42d9e2789;hb=07e6a8aa8549dbf5a21de8ae6423f8011ed1c8e2;hpb=b3e334f5e84b62b1e23af439c2e8a2cce1784e53 diff --git a/.bashrc b/.bashrc index ac5325e..1350fcd 100644 --- a/.bashrc +++ b/.bashrc @@ -161,10 +161,9 @@ if [ -d "$HOME/lib/config" ]; then fi complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser -if [ "`type -t short_curdir`" != function -a \ - -r "$HOME"/admin/prog/bash_prompt ]; then - . "$HOME"/admin/prog/bash_prompt -fi + +if [ -n "$VIRTUAL_ENV" ] && ! type deactivate >/dev/null 2>&1; then + . "$VIRTUAL_ENV/bin/activate" if test -d "$HOME"/.pyenv then