Skip to content
Discussion options

You must be logged in to vote

You're misreading it.

Data is configured in chezmoi config:

# ~/.config/chezmoi/chezmoi.toml
[data.alacritty.big]
    fontsize = 18
    font = "DejaVu Serif"
[data.alacritty.small]
    fontsize = 12
    font = "DejaVu Sans Mono"

The template expects its parameters to be passed with .fontsize and .font configuration

# ~/.local/share/chezmoi/.chezmoitemplates/alacritty
some: config
fontsize: {{ .fontsize }}
font: {{ .font }}
more: config

Then the template is used {{- template "alacritty" .alacritty.small -}}.

This results in the selection of .alacritty.small as the passed parameters, which have the .fontsize and .font keys expected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by laur89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants