fix template to work with windows

This commit is contained in:
Anthony Rodriguez 2023-09-20 22:49:48 +02:00
parent beff15c257
commit 35c2c33f11
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -4,8 +4,6 @@ packages
{{ if eq .chezmoi.os "windows" }} {{ if eq .chezmoi.os "windows" }}
* *
!dot_gitconfig !dot_gitconfig
{{ else if (ne .chezmoi.os "linux") }} {{ else if (.chezmoi.kernel.osrelease | lower | contains "wsl") }} # else is necessary because windows does not have a .chezmoi.osrelease
{{ if not (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
private_dot_gnupg private_dot_gnupg
{{ end }} {{ end }}
{{ end }}