Merge pull request #10 from elkowar/feature/customize_seperator

make seperator between key and value configurable via an env variable
This commit is contained in:
gk authored and GitHub committed 2020-08-19 04:00:58 +10:00
commit 9dd1b3d698
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ read -r model < /sys/devices/virtual/dmi/id/product_name
[ $# -gt 0 ] && pkgs=$#
print() {
[ "$2" ] && printf '\033[3%sm%6s\033[0m ~ %s\n' "${accent:-4}" "$1" "$2"
[ "$2" ] && printf '\033[9%sm%6s\033[0m%b%s\n' "${accent:-4}" "$1" "${separator:- ~ }" "$2"
}