Ajustement de la couleur git success du ps1

This commit is contained in:
Frogg 2026-05-07 02:27:01 +02:00
parent 813c0beeac
commit 80b8dc7593
2 changed files with 7 additions and 6 deletions

View File

@ -17,8 +17,9 @@ COLOR_LIGHT_GREEN='\033[38;5;154m'
COLOR_LIGHT_BLUE="\033[38;5;31m"
COLOR_LIGHT_RED="\033[01;91m"
COLOR_DARK_GRAY="\033[38;5;239m"
COLOR_DARK_GREEN='\033[38;5;28m'
COLOR_GREEN_BG='\033[48;5;28m' # Fond Git Propre (Vert)
COLOR_DARK_GRAY_BG='\033[48;5;239m' # Fond Gris
COLOR_LIGHT_BLUE_BG='\033[48;5;31m' # Fond Bleu
COLOR_LIGHT_RED_BG='\033[01;101m' # Fond Git Sale (Rouge Intense - 101 est le fond de 91)
COLOR_DARK_GREEN_BG='\033[48;5;28m'
COLOR_DARK_GRAY_BG='\033[48;5;239m'
COLOR_LIGHT_BLUE_BG='\033[48;5;31m'
COLOR_LIGHT_RED_BG='\033[01;101m'

View File

@ -34,8 +34,8 @@ get_git_status() {
branch=$(git branch --show-current 2>/dev/null)
[[ -z "$branch" ]] && return
current_bg=$COLOR_GREEN_BG
current_color=$COLOR_GREEN
current_bg=$COLOR_DARK_GREEN_BG
current_color=$COLOR_DARK_GREEN
status="✅"
if [[ -n $(git status --porcelain 2>/dev/null) ]]; then