I’m a complete moron, I should’ve had that backed up and used trash…
I had to learn the hard way lol
womp womp
i have rm
aliased to rm -i
, it’s basically the closest to PowerShell’s -WhatIf
that a posix shell gets
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.
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
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.
For which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
Holy shit, I never knew you could do that! I’ve always really wanted a feature to stop random commands from being added to my history.