Skip to content

.chezmoidata and .chezmoidata.$FORMAT

If a file called .chezmoidata.$FORMAT exists in the source state, it is interpreted as template data in the given format.

If a directory called .chezmoidata exists in the source state, then all files in it are interpreted as template data in the format given by their extension.

Example

If .chezmoidata.toml contains the following:

~/.local/share/chezmoi/.chezmoidata.toml
fontSize = 12

Then the .fontSize variable is available in templates, e.g.

FONT_SIZE={{ .fontSize }}

Will result in:

FONT_SIZE=12