Replies: 1 comment 1 reply
-
Use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Is it possible to prevent chezmoi from asking, by default, if a destination file needs to be overwritten, and just skip this file completely, even if it is in a modified state - except some specific files?
For example, if I run
and that creates a file 'test.txt' in the destination, then after I modify test.txt, the same command should complete without prompting to overwrite the file with the source state, unless I specifically "open" this file for potential overwrites. I don't want to use .chezmoiignore in the source - and I don't think I can use .chezmoiignore in the destination.
Does anyone know if this is possible?
For now, my "solution" is to create a wrapper script around chezmoi apply which symlinks a .chezmoiignore file from $DEST to $SOURCE, runs the apply command, then removes the symlink - but that feels incredibly dirty.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions