dots
dots copied to clipboard
Manage removed files
If we assume that the users source configuration directory is under source control ($HOME/.local/etc
) then we can keep track of what global version of files have been installed. This would allow us to keep track of what files have been removed since the last configuration install.
So for example when calling the dots install
command with no given path we could write a file called config-version
to $XDG_CONFIG_HOME
. Then during the next install we could look at that version and compare it with the current version of the source configuration files. We could then see what files have been removed and remove those from the installed dotfiles directory.