how to refactor path duplication in .mrconfig section headers?
Joey Hess
joey at kitenet.net
Fri Oct 28 18:45:14 CEST 2011
Adam Spiers wrote:
> If I have multiple repository paths all similar but spread across
> different .mrconfig files, e.g.
>
> in ~/.mrconfig
>
> [.config/mr]
> checkout = ...
>
> in ~/.config/mr/config.d/CLI:
>
> [$HOME/.git-repos/zsh]
> ...
>
> [$HOME/.git-repos/mutt]
> ...
>
> and in ~/.config/mr/config.d/GUI:
>
> [$HOME/.git-repos/urxvt]
> ...
>
> [$HOME/.git-repos/fonts]
> ...
mr can look much nicer if you take advantage of locality and chaining.
By locality, I mean putting a mrconfig close to the directories it
checks out, rather than in some standards-body controlled directory like
~/.config.
For example, you could have:
~/.mrconfig:
[.git-repos/CLI]
chain = true
[.git-repos/GUI]
skip = test_non_gui_machine
chain = true
~/.git-repos/CLI/.mrconfig:
[zsh]
...
[mutt]
...
~/.git-repos/GUI/.mrconfig:
[urxvt]
...
[fonts]
...
--
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20111028/500b8700/attachment.pgp>
More information about the vcs-home
mailing list