From 6ada4c7fb804cfea6d19a03f8751e38f671d71c4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 2 Nov 2016 00:37:54 +1100 Subject: [PATCH] prin: Fix bold not working, Fix color breakage. Closes #407 --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 5c1a8277..39653618 100755 --- a/neofetch +++ b/neofetch @@ -2352,7 +2352,7 @@ prin() { # If $2 doesn't exist we format $1 as info if [ -z "$2" ]; then - subtitle_color="$info_color" + local subtitle_color="$info_color" bold= fi @@ -2599,7 +2599,7 @@ setcolors() { color() { case "$1" in - [0-6]) printf "%b%s" "${reset}\033[3${1}m" ;; + [0-6]) printf "%b%s" "${reset}${bold}\033[3${1}m" ;; 7 | "fg") printf "%b%s" "$reset" ;; *) printf "%b%s" "\033[38;5;${1}m" ;; esac