-
Notifications
You must be signed in to change notification settings - Fork 471
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
Automatically apply changes from all the config files chemzoi manages #748
Comments
Could you give an example of the command you would like?
Autocommit and autopush are only relevant when there are changes to the source directory. |
"apply-all" is probably a really bad name choice. Example: Then I run the command, In that case, I don't have to keep track of the files I have modified. I can just run one command after applying lots of changes to multiple dotfiles. |
Thanks for the further details. If you If you can train your muscle memory to run, instead of typing
then you'll get the benefits of the changes being saved in the source state, applied to ~/.zshrc, and autocommitted and autopushed, if you have those turned on. With version 2, there'll be a |
Thank you for your explanation! The reason why I did not do Anyway, for now, I will add an alias for |
I just remembered the true reason why I used the vim + chezmoi add workflow: Please let me know what you think. Thanks! |
For the reasons mentioned above, Once |
Can there be |
You can do this with:
|
Thanks, so the one-liner would be chezmoi git -- status && chezmoi git -- add -A && chezmoi git -- commit -m 'All' && chezmoi git -- push |
Until status is released, to add the changes of all target files (edited target), I use the command (without the chezmoi managed | xargs -I _ -n1 chezmoi --dry-run add --prompt _ As @twpayne stated above |
Just as a reference for myself, when actually ready to run it: |
Fixed with #1208. |
Sometimes I have to run the apply commit with all my dotfiles. Even after enabling auto-commit and auto-push, it could still get tedious. Is there any way we can have a command like chezmoi -apply-all?
The text was updated successfully, but these errors were encountered: