Presets: use string padding syntax

Fix #1237
This commit is contained in:
李通洲
2024-09-02 16:02:05 +08:00
parent 85d89395a9
commit 64735245e7
+1 -2
View File
@@ -111,8 +111,7 @@
{
"type": "loadavg",
"compact": false,
// {duration} is not fixed length, hack it
"key": "│ LOAD \u001b[s{duration}m\u001b[u\u001b[6C│{$1}"
"key": "│ LOAD {duration>2}m │{$1}" // pad duration to 2 chars
},
{
"type": "custom",