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.
- Host: GitHub
- URL: https://github.com/divergentclouds/trashbox
- Owner: DivergentClouds
- License: bsd-3-clause
- Created: 2023-02-07T05:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T14:41:48.000Z (over 3 years ago)
- Last Synced: 2025-01-13T21:44:32.380Z (over 1 year ago)
- Topics: posix-sh, shell-script, trash, trashcan
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.