by explainplease · 7y ago · 0 comments
> - use the same source file with different results for different machines (eg. .gitconfig for home and office machines)
I do that by storing each machine's copy with its hostname as a suffix and symlinking it into place on each machine. e.g. ~/.config/anacrontab.systemA gets symlinked to ~/.config/anacrontab on systemA, and the repo contains both ~/.config/anacrontab.systemA and ~/.config/anacrontab.systemB. I can even modify one machine's file from the other machine, and it will be updated on the next push/pull.
But having integrated support for this would be nice.
No comments yet.