News for hackers. Stuff that matters.
Re:Dotfiles.github.com - A guide to dotfiles on GitHub by mcpherrinm on Tuesday April 24, 2012 @12:34AM (#3882436)
I have a "~/.hostclass" file on all systems, created manually, which contains some string identifying which confiv variant to use on that machine. EG, "home", "work".

Then, my config files are "make"'d by concatting three files: cat "$1.first" "$1.`cat ~/.hostclass`" "$1.end" > ~/.$1

This lets me split out specific parts into a hostclass-specific file.

Generally, I set variables in these files that gets used in the $1.end file.

It works pretty well for me, since my hosts are generally pretty close to each other.

There are no comments on this comment yet.