mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
prin: Fix bold not working, Add prin tests to travis
This commit is contained in:
13
neofetch
13
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
|
||||
|
||||
Reference in New Issue
Block a user