~mzhang/garbage

Soft-deletion CLI tool with FreeDesktop Trash compatibility.
Email when the CI fails.
Adds a NixOS CI config, to catch future flake breakage.
Updates flake dependencies.

clone

read-only
https://git.sr.ht/~mzhang/garbage
read/write
git@git.sr.ht:~mzhang/garbage

You can also use your local clone with git send-email.

#garbage

Build Status crates.io

Rust ver of trash-cli.

  • Windows/Recycle Bin not supported

#Installation

cargo install garbage

#Usage

Run garbage --help to understand how it's used!

$ garbage put file1 file2 ...

$ garbage restore
[..interactive]

$ garbage list

$ garbage empty [days]

If you use a bash-ish shell, feel free to add this to your shell's rc file:

alias rm='garbage put' # Make sure garbage is in your path

#Features

  • [x] Put
  • [x] List
  • [x] Restore
  • [ ] Tests...

#Spec Compliance

  • [x] Picking a Trash Directory
  • [x] Emptying
  • [ ] Directory size cache (optional)

#Issues

If you find a bug or are requesting a feature, file it here: https://todo.sr.ht/~mzhang/garbage

#About

Author: Michael Zhang

License: GPLv3, see LICENSE.md for full text.