mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #452] Option (CLI and Config) to "collapse" output about children of certain directories #201
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edbrannin on GitHub (Dec 5, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/452
Sometimes there's a directory whose size I want to see, but whose children I don't care about.
Examples:
.git.gitrepo is 80% of the whole directory" would be helpful)node_modulesrm -rf node_modulesin a stale project, but I usually don't care which dependencies are big)targetin Maven projectsmvn cleanin some projects I haven't touched in months).next/cacheas seen belowIt would be heopful if I could set a list of directories to keep collapsed in the config file, rather than building up an alias[1] in my
.zshrc[1] Something like:
alias dust=dust --collapse=.git --collapse=node_nodules --collapse=target --collapse=.next/cacheExample output where this would be helpful:
Desired result (absent whatever else would show up above these lines):
The closest I can get right now is ignoring the directory with
-X node_modules, but that completely removes it from the sizes shown: (See also #453)@bootandy commented on GitHub (Jan 15, 2025):
I see, that's interesting. Yes I think we can add this
@bootandy commented on GitHub (Jan 26, 2025):
https://github.com/bootandy/dust/pull/466
@edbrannin commented on GitHub (Feb 21, 2025):
Thank you!
@ofek commented on GitHub (Nov 19, 2025):
I'm not sure that this is working as expected: https://github.com/bootandy/dust/issues/536