How to escape '{{}}' in a templated chezmoi config file #4249
-
my chezmoi.toml file is a template and I want to use vscode as the editor. To do that i use the following snippit. However chezmoi tries to fill in the template when the config is populated during [merge]
tool = "vscode"
# [mergetool "vscode"]
# cmd = code --wait $MERGED
command = "code"
args = ["-m", "{{ .Destination }}", "{{ .Source }}", "{{ .Target }}"] |
Beta Was this translation helpful? Give feedback.
Answered by
bradenhilton
Feb 3, 2025
Replies: 1 comment
Answer selected by
halostatue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.chezmoi.io/user-guide/frequently-asked-questions/usage/#how-do-i-write-a-literal-or-in-a-template