An open API service indexing awesome lists of open source software.

https://github.com/divergentclouds/trashbox

A set of simple trash management functions written in POSIX shell script.
https://github.com/divergentclouds/trashbox

posix-sh shell-script trash trashcan

Last synced: 2 months ago
JSON representation

A set of simple trash management functions written in POSIX shell script.

Awesome Lists containing this project

README

          

# Trashbox

Trashbox is set of simple trash management functions written in POSIX shell
script. Trashbox is not compliant with the FreeDesktop.org specification.

## Installation

Source `trashbox.sh` in your shell rc file.

## Usage

### Commands

- `trashbox-put `
- Move 1 or more files to the trashbox.
- `trashbox-restore `
- Restore a file or directory from the trashbox.
- `trashbox-remove `
- Prompt to remove the given files or directories from the trashbox.
- `trashbox-empty`
- Prompt to remove all files and directories from the trashbox.
- `trashbox-list`
- List the paths relative to the trashbox of all files and directories in the
trashbox.

### Environment Variables

- `TRASHBOX`
- Holds the location of the trashbox.