#600683 please support ~/.mrconfig.d

#600683#5
Date:
2010-10-19 07:28:10 UTC
From:
To:
Hi,

it would be very nice if mr would support reading it's configuration
from ~/.mrconfig.d in addition to ~/.mrconfig, so that multiple
configuration file snipplets could be used to organise stuff.

Regards,
Daniel

#600683#10
Date:
2010-10-19 16:08:24 UTC
From:
To:
Daniel Baumann wrote:

Well you can do:

include = cat ~/.mrconfig.d/*

It's perhaps more usual though to have .mrconfig files in repos
that are checked out to subdirectories and then use chain = true to make
those mrconfig files be also processed.

#600683#15
Date:
2011-04-19 12:51:39 UTC
From:
To:
Just so this does not get lost:

My setup looks like:

richih@titanium ~ % cat .mrconfig
include = cat ~/.config/mr/config.d/*
richih@titanium ~ % ls ~/.config/mr/
available.d  config.d
richih@titanium ~ %

That way, I can keep one common mr config across all systems and
symlink from the available repos to the ones I am using locally.

I have no problem running with this ~/.mrconfig indefinitely, but I
think this would be a worthwhile setup for many users and a nice
default to support.


FYI, $XDG_CONFIG_HOME defaults to ~/.config .

Richard