Replies: 2 comments
-
|
Hooks. I don't use them myself, but this should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Interesting! Thanks! From the documentation I conclude I need to add a hook for every command which can change the file Does anybody have experience with hooks for changing dot files? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I sync my personal spell files (like
.aspellor.hunspell) via chezmoi. However I like to have words in these files in alphabetical order.I have a little script
sort-spell.shwhich I can run on.aspellor.hunspelland it sort the file (in place). At the moment I run this script manually every time before I sync (i.e.re-add) the file to the chezmoi repo.Is there way to do this automatically? I.e. run
sort-spell.shwhen I re-add the spell file? I have read Run a script when the contents of another file changes (Use scripts to perform actions), but I think this could end in an endless loop here...Any suggestions are very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions