I’m a complete moron, I should’ve had that backed up and used trash…
I had to learn the hard way lol

  • RenardDesMers@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    Sorry for your loss. I did something similar recently. A script was creating a “~” folder in my notes folder. I wanted to delete it… Thankfully it stopped at some file it couldn’t remove and my dotfiles are in git.

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    if your session is still running you can use env to help reconstruct it

  • BaumGeist@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    i have rm aliased to rm -i, it’s basically the closest to PowerShell’s -WhatIfthat a posix shell gets

      • gun@lemmy.mlOP
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Yeah my system was running out of space and I wanted to free a bit quickly. Turns out the issue was Rust building 20GB of binaries and I should have deleted those instead.

    • wuphysics87@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      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.

      • sudoer777@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 month ago

        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