From c37533ea58569bb64fae58b5d40c3fdd6695a884 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 3 Sep 2023 09:56:03 +0200 Subject: [PATCH] single lines for giti --- giti | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/giti b/giti index 5af8dcd..33067cc 100755 --- a/giti +++ b/giti @@ -73,25 +73,31 @@ else git_status_text="unknown " fi fi - if [[ $NO_DETAILS ]]; then - echo -e "$git_status_color╠══$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b" + # echo -e "$git_status_color╠══$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b" + echo -e "$git_status_color├──$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b" else - echo -e "$git_status_color╔═══╡ $git_status_text ╞════════════════════════════════════════════════════════════════" - echo -e "$git_status_color║ $COLOR_GREEN($git_branch) $COLOR_CYAN$git_url" + # echo -e "$git_status_color╔═══╡ $git_status_text ╞════════════════════════════════════════════════════════════════" + echo -e "$git_status_color┌───┤ $git_status_text ├────────────────────────────────────────────────────────────────" + # echo -e "$git_status_color║ $COLOR_GREEN($git_branch) $COLOR_CYAN$git_url" + echo -e "$git_status_color│ $COLOR_GREEN($git_branch) $COLOR_CYAN$git_url" if [[ ! $git_diff == "" ]]; then - echo -e "$git_status_color╠════════════════════════════════════════════════════════════════════════════════════" + # echo -e "$git_status_color╠════════════════════════════════════════════════════════════════════════════════════" + echo -e "$git_status_color├────────────────────────────────────────────────────────────────────────────────────" IFS=$'\n' for ENTRY in $git_diff; do if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "R "* ]]; then - echo -e "$git_status_color║ $COLOR_DARKYELLOW$ENTRY" + # echo -e "$git_status_color║ $COLOR_DARKYELLOW$ENTRY" + echo -e "$git_status_color│ $COLOR_DARKYELLOW$ENTRY" else - echo -e "$git_status_color║ $COLOR_YELLOW$ENTRY" + # echo -e "$git_status_color║ $COLOR_YELLOW$ENTRY" + echo -e "$git_status_color│ $COLOR_YELLOW$ENTRY" fi done fi - echo -e "$git_status_color╚════════════════════════════════════════════════════════════════════════════════════$COLOR_WHITE\n \b" + # echo -e "$git_status_color╚════════════════════════════════════════════════════════════════════════════════════$COLOR_WHITE\n \b" + echo -e "$git_status_color└────────────────────────────────────────────────────────────────────────────────────$COLOR_WHITE\n \b" fi fi fi