-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option for add
to implicitly encrypt
when source file is already encrypted
#3142
Comments
add
to implicitly encrypt
when source file is encryptedadd
to implicitly encrypt
when source file is already encrypted
Added "already" to title. Would a |
I might've confused you a bit, apologies: by a batch tool I meant the A config would be preferable since then I wouldn't have to worry whether I'm calling an alias or chezmoi directly or doing something in a different shell (rare, but still) |
#3146 extends |
Thank you, I liked the simplicity of a single command as I didn't find the add/re-add distinction useful (except for mass add which could potentially be done with a |
Is your feature request related to a problem? Please describe.
Whenever I edit files outside of chezmoi, or if those files are from GUI apps that edit those files themselves ignoring chezmoi, and I fix it by
chezmoi add /fd/myfile.cfg
, I get a warning message if the source file is encrypted, that adding will remove encryption. So I have to backtrack and add--encrypt
, which is inconvenientDescribe the solution you'd like
Once I've added encryption this decision should be preserved until I manually remove it instead of having to confirm it every time
Describe alternatives you've considered
Using
re-add
, but this is a batch tool and it might override other changes in other files that I don't want to have overriddenAdding
--encrypt
manually or doing some shorter alias, though it doesn't completely solve the issue since I don't remember in advance that this file is encryptedAdditional context
None
The text was updated successfully, but these errors were encountered: