- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| cog.toml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| prek.toml | ||
| README.md | ||
| uebersetzer.default.toml | ||
uebersetzer
uebersetzer is a daemon written in Rust that manages your configuration files' parameters according to your environment, using Tera templates that you define.
Motivation
I wanted my dotfiles to reference environment variables for a consistent style across my desktop, so that a single change in my .env file propagates to every config that uses those variables.
Features
- Universal: works on any file in your config
- Configurable: edit uebersetzer.toml
- Capable templating engine: thanks to Tera
preparing ueber files
For each file containing .ueber under config_path, uebersetzer writes
the rendered output to the same path with the .ueber extension removed.
For example, config.ueber.yaml -> config.yaml.
- copy config files and add ueber extension (example:
config.yaml->config.yaml.ueber) - set env variable placeholders as
{{ var_name }}in the new ueber file
Configuration
Configuration is done by editing uebersetzer.toml.
The file is searched under XDG_CONFIG_DIRS.
cp uebersetzer.default.toml ~/.config/uebersetzer.toml
Note
-
If the target file already exists, uebersetzer skips it by default. Set
force_write = trueto replace existing target files. -
Set
recursive = trueto search in all files undersconfig_path