File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ echo.BoldGreen "ColorEcho generator start!"
32
32
for shell in sh bash fish ksh zsh; do
33
33
{
34
34
echo.BoldYellow " Generating ColorEcho for ${shell} shell ..."
35
- # shell specify configs and tricks
35
+ # shell specify configs and tricks
36
36
case " ${shell} " in
37
37
" bash" | " zsh" )
38
38
fn=' function '
120
120
SH_ECHO
121
121
fi
122
122
awk ' {print $1}' " ${table} " | while IFS= read -r color; do
123
- # light or not
123
+ # light or not
124
124
for light in " " " Light" ; do
125
125
if [ " ${light} " = " " ]; then
126
126
code=3
127
127
else
128
128
code=9
129
129
fi
130
- # bold or not
130
+ # bold or not
131
131
for bold in " " " Bold" ; do
132
132
if [ " ${bold} " = " " ]; then
133
133
bCode=
134
134
else
135
135
bCode=' 1;'
136
136
fi
137
- # underline or not
137
+ # underline or not
138
138
for underLine in " " " UL" ; do
139
139
{
140
140
echo " "
@@ -144,7 +144,7 @@ SH_ECHO
144
144
else
145
145
ulCode=' 4;'
146
146
fi
147
- # write the code down
147
+ # write the code down
148
148
echo " ${startSym} "
149
149
echo " ${echo} " ' "\\033[' " ${ulCode}${bCode}${code} " " $( grep " ${color} " " ${table} " | awk ' {print $2}' ) " ' m$' " ${para} " ' \\033[m"'
150
150
echo " ${endSym} "
@@ -154,7 +154,7 @@ SH_ECHO
154
154
done
155
155
done
156
156
157
- # rainbow output relys on lolcat
157
+ # rainbow output relys on lolcat
158
158
fnName=" ${fn} echo${dot} Rainbow${brackets} "
159
159
case " ${shell} " in
160
160
" fish" )
@@ -178,7 +178,7 @@ ${fnName}${startSym}
178
178
${endSym}
179
179
LOLCAT
180
180
181
- # echo.Reset to remove color code on output
181
+ # echo.Reset to remove color code on output
182
182
fnName=" ${fn} echo${dot} Reset${brackets} "
183
183
cat << RESET >> "${newDist} "
184
184
${fnName}${startSym}
You canβt perform that action at this time.
0 commit comments