mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #168] Is it possible to configure this globally? #75
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 @IceSentry on GitHub (Aug 5, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/168
I want to be have the reverse option on by default and I'd rather not have to remember to type
-revery time.@bootandy commented on GitHub (Aug 6, 2021):
how would that work? Are you thinking of an environment variable ?
@IceSentry commented on GitHub (Aug 6, 2021):
Could be an env var, but a lot of cli tools have a config file that it then looks for at a few location.
A few examples:
https://github.com/Peltoche/lsd#configuration
https://starship.rs/config/
https://github.com/dalance/procs#configuration
https://github.com/XAMPPRocky/tokei#configuration
https://clementtsang.github.io/bottom/nightly/configuration/config-file/default-config/
@bootandy commented on GitHub (Aug 11, 2021):
thanks, I'll look into this.
@xenoterracide commented on GitHub (Oct 21, 2021):
alias dust="dust -r"and you could then use\dustto not use it, for posix shell only@IceSentry commented on GitHub (Oct 21, 2021):
I'm on windows, alias are a fine workaround if you can use them easily, but having a global configuration can be much easier to read than a shell command with a bunch of flags and no comments.
@xenoterracide commented on GitHub (Oct 22, 2021):
I mean with Shell you can have global configurations... Unless you're trying to switch between batch, power shell and a posix shell. And obviously shell scripts, at least posix shell scripts, can have comments, also in shell scripts long options are generally preferred for readability and maintenance.
That said I'm not against a config file but for this particular scenario it doesn't seem like It's necessary in my mind. I noticed this when I opened an issue asking for an ignore config file, since an ignore file could be account global or directory local.
@IzhakJakov commented on GitHub (Mar 14, 2022):
I would love to see this happen as well
Please make it in
$XDG_CONFIG_HOMEby default 😊https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
@bootandy commented on GitHub (Aug 19, 2022):
Can I get some feedback on if this is a sensible way to add config file support?
https://github.com/bootandy/dust/pull/243
thanks,
@bootandy commented on GitHub (Aug 23, 2022):
Added code to do this, will go out in the next release.