Fixed issue #103 caused by "normal" colors not reseting bold/underline/... text attri...
authorBeren Minor <beren.minor+git@gmail.com>
Tue, 14 Feb 2012 08:11:17 +0000 (09:11 +0100)
committerBeren Minor <beren.minor+git@gmail.com>
Tue, 14 Feb 2012 08:13:51 +0000 (09:13 +0100)
themes/colors.theme.bash

index 9d756ee..a04c8e4 100644 (file)
@@ -182,15 +182,15 @@ function echo_color {
 }
 
 
-black="$(color black)"
-red="$(color red)"
-green="$(color green)"
-yellow="$(color yellow)"
-blue="$(color blue)"
-purple="$(color magenta)"
-cyan="$(color cyan)"
-white="$(color white bold)"
-orange="$(color red fg bright)"
+black="$(color reset black)"
+red="$(color reset red)"
+green="$(color reset green)"
+yellow="$(color reset yellow)"
+blue="$(color reset blue)"
+purple="$(color reset magenta)"
+cyan="$(color reset cyan)"
+white="$(color reset white bold)"
+orange="$(color reset red fg bright)"
 
 bold_black="$(color black bold)"
 bold_red="$(color red bold)"
@@ -226,15 +226,15 @@ normal="$(color reset)"
 reset_color="$(__make_ansi '' 39)"
 
 # These colors are meant to be used with `echo -e`
-echo_black="$(echo_color black)"
-echo_red="$(echo_color red)"
-echo_green="$(echo_color green)"
-echo_yellow="$(echo_color yellow)"
-echo_blue="$(echo_color blue)"
-echo_purple="$(echo_color magenta)"
-echo_cyan="$(echo_color cyan)"
-echo_white="$(echo_color white bold)"
-echo_orange="$(echo_color red fg bright)"
+echo_black="$(echo_color reset black)"
+echo_red="$(echo_color reset red)"
+echo_green="$(echo_color reset green)"
+echo_yellow="$(echo_color reset yellow)"
+echo_blue="$(echo_color reset blue)"
+echo_purple="$(echo_color reset magenta)"
+echo_cyan="$(echo_color reset cyan)"
+echo_white="$(echo_color reset white bold)"
+echo_orange="$(echo_color reset red fg bright)"
 
 echo_bold_black="$(echo_color black bold)"
 echo_bold_red="$(echo_color red bold)"