You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to ignore all of the contents in ~/.config from syncing to Windows except for ~/.config/myspecialfile.txt. In the documentation, it gives an example of excluding f by using !f. Adapting to my use case, I've tried !.config/myspecialfile.txt, .config/!myspecialfile.txt, and !myspecialfile.txt. None of these have worked, as chezmoi ignored still says that ~/.config is ignored
If the docs could be updated to use something like file1.config instead of just f, this would make it a lot clearer for users on where to put the !
What have you tried so far?
My .chezmoiignore looks like this:
{{- if ne .chezmoi.os "windows" }}
AppData
_vimrc
vimfiles
{{ end }}
{{ if eq .chezmoi.os "windows" }} # things for Linux, FreeBSD, and illumos
.config
!.config/myspecialfile.txt # or .config/!myspecialfile.txt or !myspecialfile.txt
{{ end }}
What exactly are you trying to do?
I'd like to ignore all of the contents in
~/.config
from syncing to Windows except for~/.config/myspecialfile.txt
. In the documentation, it gives an example of excludingf
by using!f
. Adapting to my use case, I've tried!.config/myspecialfile.txt
,.config/!myspecialfile.txt
, and!myspecialfile.txt
. None of these have worked, aschezmoi ignored
still says that~/.config
is ignoredIf the docs could be updated to use something like
file1.config
instead of justf
, this would make it a lot clearer for users on where to put the!
What have you tried so far?
My
.chezmoiignore
looks like this:Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flag$ chezmoi --verbose $COMMAND
Output of
chezmoi doctor
$ chezmoi doctor
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: