Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration file #44

Open
9999years opened this issue Aug 9, 2024 · 2 comments
Open

Add configuration file #44

9999years opened this issue Aug 9, 2024 · 2 comments
Labels
idea Idea that could be implemented in the future

Comments

@9999years
Copy link

It would be nice to set some default options for rnr, like --backup, --force, --hidden, --recursive, --include-dirs, or --silent.

I would like a configuration file (e.g. ~/.config/rnr.toml) to set these options in.

This would require a few things:

  • Reading options from a configuration file as well as the command-line
  • Making sure that command-line options override the configuration file options
  • Adding negation options for some command-line options, so that (e.g.) if --silent is set in the configuration file, an option named something like --loud or --verbose can undo that setting at invocation-time

This is mostly a tracking issue, thanks again for rnr, it's super useful!

@ismaelgv
Copy link
Owner

This is an idea that I also evaluated before. I may take a look and add it in the near future.

@RichardFevrier
Copy link

Depending of your shell @9999years but you could make aliases or abbr (fish).

@ismaelgv ismaelgv added the idea Idea that could be implemented in the future label Jan 5, 2025
@ismaelgv ismaelgv changed the title [Feature] Configuration file Add configuration file Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Idea that could be implemented in the future
Projects
None yet
Development

No branches or pull requests

3 participants