Skip to content

Commit 6473524

Browse files
committed
Presets: use string padding syntax
Fix #1237
1 parent 85d8939 commit 6473524

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

presets/examples/20.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@
111111
{
112112
"type": "loadavg",
113113
"compact": false,
114-
// {duration} is not fixed length, hack it
115-
"key": "│ LOAD \u001b[s{duration}m\u001b[u\u001b[6C│{$1}"
114+
"key": "│ LOAD {duration>2}m │{$1}" // pad duration to 2 chars
116115
},
117116
{
118117
"type": "custom",

0 commit comments

Comments
 (0)