]> git.phdru.name Git - dotfiles.git/commitdiff
.bashrc: Remove second call to `bash_prompt`
authorOleg Broytman <phd@phdru.name>
Thu, 16 Nov 2023 13:53:43 +0000 (16:53 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 16 Nov 2023 13:53:43 +0000 (16:53 +0300)
.bashrc

diff --git a/.bashrc b/.bashrc
index ac5325ef876ab5e60e4f6877230422e42d9e2789..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