Skip to content

Commit

Permalink
Unset ps1_virtual_env when deactivate virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Dec 12, 2024
1 parent c75e5ef commit 9390b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/share/biglinux/bash-config/blerc
Original file line number Diff line number Diff line change
Expand Up @@ -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╰─ ❯ "
Expand Down

0 comments on commit 9390b18

Please sign in to comment.