Manage your configuration files easily with templating
cargo install dotfiler
mkdir $XDG_CONFIG_HOME/dotfiler
mv examples/* $XDG_CONFIG_HOME/dotfiler
This creates a dotfiler executable under ~/.cargo/bin/. To run this, either add that to your PATH or move the file to /usr/bin/
- Move your file, for example xresources, into
~/.config/dotfiler/templates
- Make an entry for it inside config.toml with
templatename = path/to/real/file
- Replace any text inside to be changed with {{ variablename }} inside the template file
- Add the variable name under [themename] in config.toml
Ex: [default]
Variables can also be stored under [global] if you want them to be constant for all files - Run the program with
dotfiler <themename>
If no theme name is specified, the program uses [default]