detail output color correction

This commit is contained in:
Dirk Alders 2023-09-30 09:22:11 +02:00
parent 84582af968
commit d0a97241aa

2
giti
View File

@ -92,7 +92,7 @@ if [[ ! $git_diff == "" ]]; then
if [[ ! $PROMPT || "$GIT_PROMPT_DETAILS" == "on" ]]; then if [[ ! $PROMPT || "$GIT_PROMPT_DETAILS" == "on" ]]; then
IFS=$'\n' IFS=$'\n'
for ENTRY in $git_diff; do for ENTRY in $git_diff; do
if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "R "* ]]; then if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "MM"* ]] || [[ $ENTRY = "R "* ]]; then
echo -e "$git_status_color│ $COLOR_DARKYELLOW$ENTRY" echo -e "$git_status_color│ $COLOR_DARKYELLOW$ENTRY"
else else
echo -e "$git_status_color│ $COLOR_YELLOW$ENTRY" echo -e "$git_status_color│ $COLOR_YELLOW$ENTRY"