From 9390b186dc0a456be4cd05c70fb4f05be484ab0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Thu, 12 Dec 2024 12:50:15 -0300 Subject: [PATCH] Unset ps1_virtual_env when deactivate virtual env --- usr/share/biglinux/bash-config/blerc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/share/biglinux/bash-config/blerc b/usr/share/biglinux/bash-config/blerc index aeff13c..647eda8 100755 --- a/usr/share/biglinux/bash-config/blerc +++ b/usr/share/biglinux/bash-config/blerc @@ -221,6 +221,8 @@ setPrompt() { if [[ -n $VIRTUAL_ENV ]]; then ps1_virtual_env="$reset $virtualEnvFg $virtualEnvBg$yellowFg  \[\e[38;5;254m\]$VIRTUAL_ENV $reset$virtualEnvFg$reset" + else + unset ps1_virtual_env fi PS1="$blue2Fg╭─\[\e[38;5;31m\]\[\e[97;48;5;31m\] \[\e[38;5;31;48;5;24m\]\[\e[97m\] \u \[\e[38;5;24;48;5;238m\]\[\e[38;5;254m\] \w \[\e[0;38;5;238m\]$gitBg$gitPrompt$ps1_virtual_env$reset \[\e[38;5;245m\] \t\[\e[0m\]\n$blue2Fg╰─ ❯ "