Mercurial > dotfiles
view dot_config/fsh/overlay.ini.tmpl @ 840:f3e87577dd3a
fix: sort keys from template dicts to determistically generate scripts
From http://masterminds.github.io/sprig/dicts.html
> The keys function will return a list of all of the keys in one or more dict types.
> Since a dictionary is unordered, the keys will not be in a predictable order.
> They can be sorted with sortAlpha.
This results in a different ordering of commands in the generated scripts
which break the hashing in chezmoi to determine whether the scripts needs to
be re-run.
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 02 Feb 2024 17:44:49 +0100 |
parents | 164683291d2f |
children |
line wrap: on
line source
{{ if .dark }} # No config {{ else }} [base] unknown-token = #d71707 [paths] path = #0b51a6 path-to-dir = #4f9fcf pathseparator = #4f9eeb [command-point] reserved-word = #4e279a subcommand = #4e279a builtin = green function = green command = green precommand = green hashed-command = green global-alias = #2f6f9f,bg:#f5faff [arguments] single-hyphen-option = #2f6f9f,bg:#f5faff double-hyphen-option = #2f6f9f,bg:#f5faff single-quoted-argument = #000000,bg:#e8ffd5,bold double-quoted-argument = #000000,bg:#e8ffd5,bold dollar-quoted-argument = #000000,bg:#e8ffd5,bold [other] variable = #7653c1,bg:#f3f2ff [for-loop] foroper = #2f6f9f,bg:#f4faff [math] mathnum = #7653c1,bg:#f3f2ff {{ end }}