That's not the same code, is it? GP's code does not seem to compile in C++: https://godbolt.org/z/5oAIYE But it does in C: https://godbolt.org/z/zdTKiE
A good starting point for versioning dotfiles is https://dotfiles.github.io/. I like to use Dotbot [1] for managing and installing my dotfiles, but there are plenty of other options listed. [1]…
That's not the same code, is it? GP's code does not seem to compile in C++: https://godbolt.org/z/5oAIYE But it does in C: https://godbolt.org/z/zdTKiE
A good starting point for versioning dotfiles is https://dotfiles.github.io/. I like to use Dotbot [1] for managing and installing my dotfiles, but there are plenty of other options listed. [1]…