diff --git a/neofetch b/neofetch index b7d3aa5f..afb29d51 100755 --- a/neofetch +++ b/neofetch @@ -2348,13 +2348,10 @@ info() { # Prin {{{ prin() { - string="$1${2:+: $2}" + string="${1//$'\033[0m'}${2:+: $2}" # If $2 doesn't exist we format $1 as info - if [ -z "$2" ]; then - local subtitle_color="$info_color" - bold= - fi + [ -z "$2" ] && local subtitle_color="$info_color" # Format the output string="${string/:/${reset}${colon_color}:${info_color}}" @@ -3194,6 +3191,12 @@ getargs() { info "$(tr '[:lower:]' '[:upper:]' <<< "$func")" "$func" done + info linebreak + + prin "PRIN TEST" "$(color 1)1$(color 2)2$(color 3)3" + prin "SUBTITLE" + prin "$(color 5)SUBTITLE2" + info linebreak info cols info linebreak