From 1492126a70f7cc9ae815e8b0bfe3ddd0fea61827 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 20 Sep 2023 19:40:02 +0200 Subject: [PATCH] add logic to ignore everything on windows but gitconfig --- .chezmoiignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.chezmoiignore b/.chezmoiignore index 2926dbf..cb511d2 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,7 +1,10 @@ README.md screenshots 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") }} private_dot_gnupg {{ end }}