How can I have multiple external files point to the same directory? #4766
Answered
by
twpayne
aaronmallen
asked this question in
Q&A
-
|
I'm trying to install fonts on my system but toml doesn't allow the same key twice: {{- if eq .chezmoi.os "darwin" }}
["Library/Fonts"]
extract = true
type = "archive"
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/FiraCode.zip"
["Library/Fonts"]
extract = true
type = "archive"
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/JetBrainsMono.zip"
{{- end }}
{{- if eq .chezmoi.os "linux" }}
[".local/share/fonts"]
extract = true
type = "archive"
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/FiraCode.zip"
[".local/share/fonts"]
extract = true
type = "archive"
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/JetBrainsMono.zip"
{{- end }}What is the best way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
twpayne
Nov 21, 2025
Replies: 1 comment 2 replies
-
|
See how I do this: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
aaronmallen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See how I do this:
https://github.com/twpayne/dotfiles/blob/1e0e8b438a55351dee7767fdddf79dc1a1731569/home/.chezmoiexternal.toml.tmpl#L103-L120