[GH-ISSUE #184] Allow custom prefixes #81

Closed
opened 2026-06-08 11:25:35 +03:00 by zhus · 1 comment
Owner

Originally created by @eugenesvk on GitHub (Sep 21, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/184

It'd be great if we could set an environment variable/config option that would replace the default prefixes

For example, I have 4 files of 1b, 1k, 1m and 2m sizes, the default dust -b -s view is:

   1B   ┌── 1b
 1.0K   ├── 1024b
1000K   ├── 1048576b
 2.0M   ├── 2097152b

I'd prefer it to look like:

   1    ┌── 1b
 1.0k   ├── 1024b
1000k   ├── 1048576b
 2.0M   ├── 2097152b

this way it's easier to differentiate between bytes and kilobytes as well as between kilo and mega (since M is capitalized vs k)

Originally created by @eugenesvk on GitHub (Sep 21, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/184 It'd be great if we could set an environment variable/config option that would replace the default prefixes For example, I have 4 files of 1b, 1k, 1m and 2m sizes, the default `dust -b -s` view is: ``` 1B ┌── 1b 1.0K ├── 1024b 1000K ├── 1048576b 2.0M ├── 2097152b ``` I'd prefer it to look like: ``` 1 ┌── 1b 1.0k ├── 1024b 1000k ├── 1048576b 2.0M ├── 2097152b ``` this way it's easier to differentiate between bytes and kilobytes as well as between kilo and mega (since `M` is capitalized vs `k`)
zhus closed this issue 2026-06-08 11:25:35 +03:00
Author
Owner

@bootandy commented on GitHub (Sep 24, 2021):

Sorry, I'm not convinced this is worth doing. thanks for you thoughts though.

<!-- gh-comment-id:926170025 --> @bootandy commented on GitHub (Sep 24, 2021): Sorry, I'm not convinced this is worth doing. thanks for you thoughts though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#81