Skip to content

.chezmoidata.$FORMAT

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

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
Back to top