GNU Stow
Sources
I use GNU stow.
I followed the this tutorial by Brandon Invergo, linked in the official GNU Stow page
Process
Stow enables you to store config files in a folder and symlink them in the proper places.
In the case of my dotfiles are stored in a folder called dotefiles that is also a git repo.
The structure is as follows, with helix and sway sway as examples:
dotfiles
├─ helix
├─── .config
├────── helix
├──────── config.toml
├──────── languages.toml
├─ sway
├─── .config
├────── sway
├──────── config
├──────── styles.css
├─ other programs ...
When running stow folder_name
it will symlink the folder or it's content (if
already preexisting folder) to the location.