]> git.phdru.name Git - dotfiles.git/blobdiff - .bashrc
.bashrc: Remove second call to `bash_prompt`
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index f3d2afb1a86bea829e394331b3da921adaa38b01..1350fcd020dfd1fe2b7af017078cece4aadb213d 100644 (file)
--- 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
@@ -179,8 +178,6 @@ then
 fi
 
 
-. virtualenvwrapper_lazy.sh 2>/dev/null
-
 if [ -n "$VIRTUAL_ENV" ] && ! type deactivate >/dev/null 2>&1; then
     . "$VIRTUAL_ENV/bin/activate"
 fi
@@ -190,6 +187,16 @@ fi
 
 trap '[ "$VIRTUAL_ENV" ] && deactivate' EXIT
 
+. virtualenvwrapper_lazy.sh 2>/dev/null
+
+
+if test -x /usr/bin/screen >/dev/null 2>&1; then
+    screen_newwin() {
+        history -a
+        screen "$@"
+    }
+fi
+
 if [ "$SHLVL" -eq 1 -a "`type -t X`" = function ] && which startx >/dev/null 2>&1; then
     # From https://stackoverflow.com/a/18839557
 
@@ -207,10 +214,3 @@ if [ "$SHLVL" -eq 1 -a "`type -t X`" = function ] && which startx >/dev/null 2>&
 
     X() { history -a; _non_bash_X; history -r; }
 fi
-
-if test -x /usr/bin/screen >/dev/null 2>&1; then
-    screen_newwin() {
-        history -a
-        screen "$@"
-    }
-fi