Download

trash.pl

A command line tool for trashing files

  • CLI
Code 155 linesPerl 132Makefile 15Lua 8
NameModifiedLinesSize
.pandoc/ 9 lines2% of this folder's lines 220 B2% of this folder's bytes
LICENSE 40 lines11% of this folder's lines 1.9 KiB18% of this folder's bytes
Makefile 21 lines6% of this folder's lines 449 B4% of this folder's bytes
README.md 34 lines9% of this folder's lines 656 B6% of this folder's bytes
trash.1 67 lines18% of this folder's lines 1.6 KiB15% of this folder's bytes
trash.1.md 65 lines17% of this folder's lines 1.3 KiB12% of this folder's bytes
trash.pl * 141 lines37% of this folder's lines 4.8 KiB44% of this folder's bytes

README.md

Trash.pl

A simple perl command line tool for Freedesktop.org-compliant trash management.

Usage:

# Install:
sudo make install

# Send a file to the trash:
trash foo.txt

# List trash contents:
trash -l

# Untrash a file:
trash -u foo.txt

# Empty the trash:
trash -e

Dependencies

This program requires Perl (developed with v5.34.0) with the Time::Ago module (cpanm Time::Ago), fzf (for picking which file to untrash), and exiftool for showing file info about trashed files.

License

The license is MIT with the Commons Clause. See LICENSE for full details.