From: Oleg Broytman Date: Thu, 16 Nov 2023 13:53:43 +0000 (+0300) Subject: .bashrc: Remove second call to `bash_prompt` X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=07e6a8aa8549dbf5a21de8ae6423f8011ed1c8e2 .bashrc: Remove second call to `bash_prompt` --- 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