mackup icon indicating copy to clipboard operation
mackup copied to clipboard

Support custom config file locations via environment variables

Open NorthIsUp opened this issue 1 year ago • 4 comments

This adds support for a custom config file location via the new $MACKUP_CONFIG var or by checking for $XDG_CONFIG_HOME.

It searches for config files in the following order:

  • ~/.mackup.cfg
  • $MACKUP_CONFIG
  • $XDG_CONFIG_HOME/mackup/mackup.cfg
  • ~/.config/mackup/mackup.cfg

if none of these exist ~/.mackup.cfg is created and used

NorthIsUp avatar Jan 19 '24 19:01 NorthIsUp

How has that not been merged yet? Seems like's been a very hot topic for a long time https://github.com/lra/mackup/issues/473 https://github.com/lra/mackup/pull/632 https://github.com/lra/mackup/pull/1318 https://github.com/lra/mackup/pull/1694 https://github.com/lra/mackup/issues/1509 https://github.com/lra/mackup/pull/1987

con-f-use avatar Feb 22 '24 22:02 con-f-use

pretty plz.

con-f-use avatar Mar 23 '24 18:03 con-f-use

Seems like a pretty straight forward & sensible PR for a long-requested feature. @lra any thoughts on this PR? Thanks! 🙏

lougreenwood avatar Jun 04 '24 07:06 lougreenwood

Agreed, this should be implemented. Those concerned with their config settings are often concerned with organizing where those config files are stored.

coquizen avatar Jul 04 '24 12:07 coquizen