From abd0391c367e095836a365f02177a91c634a1070 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 14 Dec 2016 21:35:45 +1100 Subject: [PATCH] Info: Reduce size of prin() further --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 38235ffb..dca2f5a0 100755 --- a/neofetch +++ b/neofetch @@ -2459,14 +2459,11 @@ info() { } prin() { - subtitle="${1//$'\033[0m'}" - string="${2:+: $2}" - # If $2 doesn't exist we format $1 as info [[ -z "$2" ]] && local subtitle_color="$info_color" # Format the output - string="${subtitle}${string}" + string="${1//$'\033[0m'}${2:+: $2}" string="$(trim "$string")" string="${string/:/${reset}${colon_color}:${info_color}}" string="${subtitle_color}${bold}${string}"