I’m a complete moron, I should’ve had that backed up and used trash…
I had to learn the hard way lol
I’ve started adopting the habit of putting “-rf” as the last argument to avoid accidentally deleting something before I’ve double-checked my input. Good luck, and may this never happen again.
That’s why I always:
- cd .cache
- ls
- rm -r *
Type a space before rm to prevent it from being added to your history to be a extra careful.
I once had a directory in /tmp
called etc
which contained subdirectories for something I was migrating.
I thought that I was in /tmp
when I ran rm -rf etc
… I was actually in /
Use nix home-manager or guix home and put your configs in a git repo (this is my guix home config for reference)
That’s very helpful now. You have added nothing other than to pull the declarative distro equivalent of “I use Arch, BTW” And then link your literal code. For shame. For shame.
nix/guix can be used on any distro and it provides a way to organize .config files so that if the .config directory gets deleted or accidentally modified for some reason, restoring it would be very easy. By putting the configuration in a git repo, it also makes it easy to restore previous configurations. I accidentally deleted a bunch of stuff in my .config directory once and that’s one of the reason I use this tooling now, so I thought OP would find it helpful also
Ow.