From 26b5db822a5bb0a1e60d6d694c6dd3ea5d1cd2de Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 14 May 2016 10:54:53 +1000 Subject: [PATCH] Fix bold option not working --- neofetch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index 8b648dfc..f91f2731 100755 --- a/neofetch +++ b/neofetch @@ -2372,8 +2372,8 @@ info () { case "$1" in title) - string="${bold}${title_color}${output}" - string="${string/@/${at_color}@${title_color}}" + string="${title_color}${bold}${output}" + string="${string/@/${at_color}@${title_color}${bold}}" length=${#output} ;; @@ -2382,7 +2382,7 @@ info () { ;; *) - string="${bold}${subtitle_color}${subtitle}${clear}" + string="${subtitle_color}${bold}${subtitle}${clear}" string+="${colon_color}: ${info_color}${output}" length=$((${#subtitle} + ${#output} + 2)) ;; @@ -2405,7 +2405,7 @@ prin () { length=${#1} else - string="${bold}${subtitle_color}${1}${clear}" + string="${subtitle_color}${bold}${1}${clear}" string+="${colon_color}: ${info_color}${2}" length=$((${#subtitle} + ${#2} + 1)) fi @@ -3138,9 +3138,8 @@ trap 'printf "\033[?25h"; clear; exit' 2 getdistro [ -z "$ascii_distro" ] && ascii_distro="$distro" -# Text formatting +# Get colors colors -bold if [ "$image" != "off" ]; then # If the script exits for any reason, unhide the cursor. @@ -3189,6 +3188,7 @@ fi [ "$image" != "off" ] && printf "\033[0H" # Print the info +bold printinfo if [ "$image" != "off" ]; then