MultiConf

A command line tool for easily generating multiple versions of a configuration file from a single template.

Why?

I'm a big fan of the i3 window manager, and I use it on several linux desktops and laptops. While I mostly want the same i3 configuration across all of these computers, some require different variations.

I created multiconf to make it easy to generate multiple variations of a config file.

How to use

Create a file called base.txt:

global config 1 global config 2 dog$>>canine config 1 cat$>>feline config 1 global config 3

Then create the "dog" version of base.txt:

$ multiconf -c dog -i base.txt -o dog.txt

This will contain:

global config 1 global config 2 canine config 1 global config 3