mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #314] Default depth value from config #137
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 @yitsushi on GitHub (Feb 28, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/314
The only thing blocks me to alias
dusttoduis thedepthvalue. I don't want to specifydepthevery single time, and if I forget to add it can be painful if the directory structure is very deep. Most of the time I need--depth=1, but not all the time.I can't set alias to
du="dust --depth=1"because if I want to use a different value, it will cry about it: "The argument '--depth ' was provided more than once".The easiest solution would be to add a default value in the config (
depth) and it would work the same way as other options:--depthis defined, use that value.depthis defined in config, use that value.usize::MAX(that's the default now).Is there a way to achieve it and I just couldn't figure it out or it's a missing feature. If it's a missing feature, I have a branch with it locally so I can file a PR anytime.
@bootandy commented on GitHub (Mar 5, 2023):
this seems reasonable to me.