mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
You can now print info without a subtitle! eg. "info memory"
This commit is contained in:
7
fetch
7
fetch
@@ -1784,10 +1784,6 @@ info () {
|
|||||||
string="${underline_color}${output}"
|
string="${underline_color}${output}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
linebreak | cols)
|
|
||||||
string=""
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
*)
|
||||||
string="${bold}${subtitle_color}${subtitle}${clear}"
|
string="${bold}${subtitle_color}${subtitle}${clear}"
|
||||||
string+="${colon_color}: ${info_color}${output}"
|
string+="${colon_color}: ${info_color}${output}"
|
||||||
@@ -1795,6 +1791,9 @@ info () {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# If there's no subtitle don't print one
|
||||||
|
[ -z "$2" ] && string=${string/*: }
|
||||||
|
|
||||||
# Print the string
|
# Print the string
|
||||||
printf "%b%s\n" "${padding}${string}${clear}"
|
printf "%b%s\n" "${padding}${string}${clear}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user