add logic to ignore everything on windows but gitconfig

This commit is contained in:
Anthony Rodriguez 2023-09-20 19:40:02 +02:00
parent 38d92b9f2a
commit 1492126a70
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,7 +1,10 @@
README.md README.md
screenshots screenshots
packages packages
{{ if (ne .chezmoi.os "linux") }} {{ if (toString .chezmoi.os | toString | contains "windows")}}
*
!dot_gitconfig
{{ else if (ne .chezmoi.os "linux") }}
{{ if not (.chezmoi.kernel.osrelease | lower | contains "microsoft") }} {{ if not (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
private_dot_gnupg private_dot_gnupg
{{ end }} {{ end }}