| My ~/scripts is a git repo My dotfiles/configs are a mix of the following setup on boot: - one-way copy of config file from $repo/$path to $path (prevents apps from modifying my curated config or adding noise) - or make it a symlink (if I want it mutable) - or make it a bind mount (if a symlink won't work; can be a file or folder) - or make it a one way copy but add a file watcher to copy changes back to the repo (if none of the above work. Some programs fail if the file they need is a symlink or is bind mounted) For dotfiles using a one-way copy, whenever I change a setting I want to persist I have to manually copy or edit the original $repo/$path. I can take a diff against the repo for a hint, or use `inotifywait -r -e modify,create,delete,move . ~/.local ~/.config -m` for something new. Not using hard links since the dotfiles are likely to be on a different filesystem (or dataset) than their target paths. |