Download
34 lines 656 BMarkdownModified 2021-12-04 raw

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.

12345678910111213141516171819202122232425262728293031323334
# Trash.pl

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

## Usage:

```sh
# 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](https://github.com/junegunn/fzf) (for picking which
file to untrash), and [exiftool](https://exiftool.org/) for showing file info
about trashed files.

## License

The license is MIT with the Commons Clause. See [LICENSE](LICENSE) for full
details.