Chezmoi: How to ignore a file if its content exists in a different file?

74 Views Asked by At

I use Rectangle to manage my windows and chezmoi to manage my dotfiles. Rectangle reads the configuration from ~/Library/Application\ Support/Rectangle/RectangleConfig.json and renames the file then to RectangleConfig<A_DATE_PATTERN>.json. Chezmoi then would recreate the RectangleConfig.json again and again - also if nothing changed.

How to ignore in chezmoi the RectangleConfig.json, if its content does not differ from the latest RactangleConfig<A_DATE_PATTERN>.json?

P.S. Would be great if someone could create a tag for chezmoi

0

There are 0 best solutions below