From 2ab56e8570eabf8401de8fe47339d86f7c991124 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 13 Nov 2016 21:29:25 +1100 Subject: [PATCH] bold: Rename bold() to get_bold() --- neofetch | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/neofetch b/neofetch index 688f8d3d..6c2bb4b5 100755 --- a/neofetch +++ b/neofetch @@ -2303,13 +2303,13 @@ info() { err "Info: Couldn't detect $subtitle." && return case "$1" in - title) + "title") string="${title_color}${bold}${output}" string="${string/@/${at_color}@${title_color}${bold}}" length="${#output}" ;; - underline) string="${underline_color}${output}" ;; + "underline") string="${underline_color}${output}" ;; *) string="${subtitle_color}${bold}${subtitle}${reset}" @@ -2370,7 +2370,14 @@ get_underline() { fi } -bold() { +get_line_break() { + line_break="​ " + + # Calculate info height + info_height="$((info_height+=1))" +} + +get_bold() { case "$ascii_bold" in "on") ascii_bold="\033[1m" ;; "off") ascii_bold="" ;; @@ -2382,13 +2389,6 @@ bold() { esac } -get_line_break() { - line_break="​ " - - # Calculate info height - info_height="$((info_height+=1))" -} - trim() { # When a string is passed to 'echo' all trailing and leading # whitespace is removed and inside the string multiple spaces are @@ -3121,7 +3121,7 @@ main() { get_args "$@" old_flags get_distro - bold + get_bold get_distro_colors # Restore cursor and clear screen on ctrl+c