Browse Source

single lines for giti

84582af
Dirk Alders 1 year ago
parent
commit
c37533ea58
1 changed files with 14 additions and 8 deletions
  1. 14
    8
      giti

+ 14
- 8
giti View File

73
         git_status_text="unknown      "
73
         git_status_text="unknown      "
74
       fi
74
       fi
75
     fi
75
     fi
76
-
77
     if [[ $NO_DETAILS ]]; then
76
     if [[ $NO_DETAILS ]]; then
78
-      echo -e "$git_status_color╠══$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b"
77
+      # echo -e "$git_status_color╠══$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b"
78
+      echo -e "$git_status_color├──$COLOR_GREEN($git_branch)$git_status_color - $git_status_text - $COLOR_CYAN$git_url$COLOR_WHITE\n\b"
79
     else
79
     else
80
-      echo -e "$git_status_color╔═══╡ $git_status_text ╞════════════════════════════════════════════════════════════════"
81
-      echo -e "$git_status_color║ $COLOR_GREEN($git_branch)  $COLOR_CYAN$git_url"
80
+      # echo -e "$git_status_color╔═══╡ $git_status_text ╞════════════════════════════════════════════════════════════════"
81
+      echo -e "$git_status_color┌───┤ $git_status_text ├────────────────────────────────────────────────────────────────"
82
+      # echo -e "$git_status_color║ $COLOR_GREEN($git_branch)  $COLOR_CYAN$git_url"
83
+      echo -e "$git_status_color│ $COLOR_GREEN($git_branch)  $COLOR_CYAN$git_url"
82
 
84
 
83
       if [[ ! $git_diff == "" ]]; then
85
       if [[ ! $git_diff == "" ]]; then
84
-        echo -e "$git_status_color╠════════════════════════════════════════════════════════════════════════════════════"
86
+        # echo -e "$git_status_color╠════════════════════════════════════════════════════════════════════════════════════"
87
+        echo -e "$git_status_color├────────────────────────────────────────────────────────────────────────────────────"
85
         IFS=$'\n'
88
         IFS=$'\n'
86
         for ENTRY in $git_diff; do 
89
         for ENTRY in $git_diff; do 
87
           if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "R "* ]]; then
90
           if [[ $ENTRY = "D "* ]] || [[ $ENTRY = "A "* ]] || [[ $ENTRY = "M "* ]] || [[ $ENTRY = "R "* ]]; then
88
-            echo -e "$git_status_color║ $COLOR_DARKYELLOW$ENTRY"
91
+            # echo -e "$git_status_color║ $COLOR_DARKYELLOW$ENTRY"
92
+            echo -e "$git_status_color│ $COLOR_DARKYELLOW$ENTRY"
89
           else
93
           else
90
-            echo -e "$git_status_color║ $COLOR_YELLOW$ENTRY"
94
+            # echo -e "$git_status_color║ $COLOR_YELLOW$ENTRY"
95
+            echo -e "$git_status_color│ $COLOR_YELLOW$ENTRY"
91
           fi
96
           fi
92
         done
97
         done
93
       fi
98
       fi
94
-      echo -e "$git_status_color╚════════════════════════════════════════════════════════════════════════════════════$COLOR_WHITE\n \b"
99
+      # echo -e "$git_status_color╚════════════════════════════════════════════════════════════════════════════════════$COLOR_WHITE\n \b"
100
+      echo -e "$git_status_color└────────────────────────────────────────────────────────────────────────────────────$COLOR_WHITE\n \b"
95
     fi
101
     fi
96
   fi
102
   fi
97
 fi
103
 fi

Loading…
Cancel
Save