Login
You're viewing the ruby.social public feed.
  • Aug 17, 2021, 5:31 AM
    @klaatu I just wrote (read: mostly stole) the beta version for a program based on the idea behind trashy by modifying the uutils project's rust implementation of rm.

    The reason why one might find it useful is because trashy doesn't handle CLI flags the same as rm, so if you try to alias rm=trashy it doesn't always work. This should fix that, as what I am doing is intercepting the parts of rm where the file would be removed and instead moving it to $XDG_DATA_HOME/Trash/files

    I am curious what you might think of the idea/implementation.

    https://gitlab.com/BlacKernel/waste-paper-basket.git
    💬 1🔄 0⭐ 0

Replies

  • 💬 0🔄 0⭐ 0
  • Aug 20, 2021, 11:36 PM

    @BlacKernel Very cool! I built it this morning and have been running it through its paces, and so far it's really neat.

    I have encountered a few errors, which I'll enter into Gitlab directly.

    Either way, I really love the idea of actually fixing `rm`.

    💬 0🔄 0⭐ 0