From 008f73b3abeab161bc1d0288fb49caf00edcd7f9 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 5 Feb 2016 18:16:46 +1100 Subject: [PATCH] You can now print info without a subtitle! eg. "info memory" --- fetch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fetch b/fetch index c2ec6e45..f89b94ea 100755 --- a/fetch +++ b/fetch @@ -1784,10 +1784,6 @@ info () { string="${underline_color}${output}" ;; - linebreak | cols) - string="" - ;; - *) string="${bold}${subtitle_color}${subtitle}${clear}" string+="${colon_color}: ${info_color}${output}" @@ -1795,6 +1791,9 @@ info () { ;; esac + # If there's no subtitle don't print one + [ -z "$2" ] && string=${string/*: } + # Print the string printf "%b%s\n" "${padding}${string}${clear}" }