#command-line-tool #freedesktop #bin #restore #list #trashcan #trash-cli

bin+lib garbage

CLI tool for interacting with the freedesktop trashcan

19 releases

0.4.3 May 29, 2024
0.4.1 Nov 3, 2022
0.3.2 Dec 26, 2021
0.3.1 Jun 25, 2021
0.1.1 Nov 27, 2019

#225 in Filesystem

Download history 38/week @ 2024-07-29 21/week @ 2024-09-23

1,085 downloads per month

GPL-3.0-only

68KB
2K SLoC

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

  • Put
  • List
  • Restore
  • Tests...

Spec Compliance

  • Picking a Trash Directory
  • 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.

Dependencies

~10–19MB
~267K SLoC