Skip to content

Templates

arctic_hen7 edited this page Sep 4, 2021 · 2 revisions

New Bonnie configurations can be created very quickly and efficiently with bonnie -i. This uses a pre-programmed default normally, but it can also be instructed to use a template by running bonnie -i --template /path/to/your/template/file instead. These templates are NOT checked for their validity, so you can put placeholders or whatever you want in there.

You can also set a global template at ~/.bonnie/template.toml (changeable with the BONNIE_TEMPLATE environment variable), which will be used if --template isn't set. This essentially allows global file configurations (such as a default shell), while still maintaining the atomicity and portability of individual configuration files.