Skip to content

Using .chezmoiignore with different operating systems #2291

Answered by twpayne
cadenkriese asked this question in Q&A
Discussion options

You must be logged in to vote

.chezmoiignore uses filenames in the target state, not the source state, so that it is not affected by changes to attributes. Your .chezmoiignore file should contain:

readme.md
scoopfile.json
Brewfile
.config/neofetch/m1-max.png

{{ if eq .chezmoi.os "windows" }}
.config/iterm2/*
.zshrc
.hushlogin
{{ end }}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cadenkriese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants