From 07e6a8aa8549dbf5a21de8ae6423f8011ed1c8e2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 16 Nov 2023 16:53:43 +0300 Subject: [PATCH] .bashrc: Remove second call to `bash_prompt` --- .bashrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.2