Skip to content

.chezmoidata.$FORMAT

If a file called .chezmoidata.$FORMAT exists in the source state, it is interpreted as structured static data in the given format. This data can then be used in templates.

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