• KindaABigDyl
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    I only have one alias: alias rm=trash-rm

    EDIT: Sorry. It’s actually alias rm=trash

      • KindaABigDyl
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        Should be just trash not trash-rm, but it’s like the other person said, when you go to rm, it moves it to trash now, instead of deleting, since usually I don’t want to truly delete things (i.e., I don’t raw delete when using a GUI, so I’m bringing that behavior to CLI as well)

        You can ofc still use the old rm and do full deletion. Either sudo rm (unless root also has rm aliased) or /bin/rm

        But also you can do rm then trash-empty for the same behavior.

        I’m actually trying a new alias alias del=/bin/rm so that I have a quick way to get the old behavior.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Should that not be alias rm=trash-put ?

      My distro tells me that trash-rm comes from the package trash-cli and the README of that says that trash-rm removes files from the trashcan.

      • KindaABigDyl
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Yeah I was mistaken. It’s actually alias rm=trash (not trash-put either)