make seperator between key and value configurable via an env variable

This commit is contained in:
elkowar committed 2020-08-18 20:00:08 +02:00
1 parent 8c30f4a730
commit 3d615c8c91
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"
}