You can now print info without a subtitle! eg. "info memory"
This commit is contained in:
parent
5aaab244ce
commit
008f73b3ab
1 changed files with 3 additions and 4 deletions
7
fetch
7
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}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue