Skip to content

Conditional variable export in chezmoi.<format>.tmpl throwing undefined error on chezmoi init #2907

Closed Answered by nandalopes
robellegate asked this question in Q&A
Discussion options

You must be logged in to vote

You must initialize these variables outside if statement, using :=. Then inside if you update the values with =.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nandalopes
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