Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmpstpdwn/trashx
trashx - A simple trash management tool.
https://github.com/tmpstpdwn/trashx
bash cli csvlens linux shell trashcli trashx unix
Last synced: 1 day ago
JSON representation
trashx - A simple trash management tool.
- Host: GitHub
- URL: https://github.com/tmpstpdwn/trashx
- Owner: tmpstpdwn
- License: gpl-3.0
- Created: 2024-06-14T05:17:25.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T05:57:09.000Z (4 months ago)
- Last Synced: 2024-11-14T13:11:46.381Z (2 months ago)
- Topics: bash, cli, csvlens, linux, shell, trashcli, trashx, unix
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trashx - A simple trash management tool.
`trashx` is a simple trash management system for trashing, deleting, listing, and restoring files.
## Why ??
I made this small script to help me manage trash on my system. even though programs already exist for the same, i though it would be a good learning experiance.
Now i think its at a point where other can use it too.## Dependancies
- `uuidgen` : for unique ID generation for better trash management.
- `csvlens` : for a prettyfied view of trash data.## Installation
manually copy/move the script `src/trashx` to a directory under the `$PATH` variable for global access.
## Usage
``` bash
Usage: trashx []Commands:
-t, --trash : Move a file or directory to the trash
Example: trashx -t / --trash myfile.txt
-e, --empty : Empty the trash
Example: trashx -e / empty
-l, --list : List the contents of the trash
Example: trashx -l / --list
-r, --restore : Restore a file from the trash
Example: trashx -r / --restore
-h, --help, * : Show this help messageNote: only -t, --trash command have an argument which
can be a file or folder path to trash.
```Example:
``` bash
trashx -t $HOME/Pictures/Screenshots/desktop.png
```## Contributions
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or new features.
## License
This project is licensed under the GPL3 License - see the [LICENSE](LICENSE) file for details.