Closed ckt114 closed 1 year ago
What is the output of the following commands or each machine?
chezmoi ignored
chezmoi managed | grep key
chezmoi apply --debug ~/.keys/work.asc.key
Thanks for the pointer, @twpayne. I had .chezmoiroot
with home
so that's why it didn't work. Putting .chezmoiignore
into home
works.
Fantastic! Glad this is solved :)
What exactly are you trying to do?
I'm using
gpg
to encrypt files from different machines and using.chezmoiignore
to manage it on different machine but it kept on trying to manage the ignored file on the machine that it's not suppose to manage.chezmoi add --encrypt ~/.keys/work.asc.key
~/.local/share/chezmoi/.chezmoiignore
. I do have.work
in my data b/c I use it in other templates and they are working as expectedchezmoi apply -v
it throws the error below.What have you tried so far?
Tried different patterns but none works.
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
That file shouldn't be managed on my personal machine so chezmoi shouldn't try to talk to pgp.