https://github.com/wicksome/trash-cli
Move files and folders to the trash
https://github.com/wicksome/trash-cli
bash cli linux macos rm shell trash utility
Last synced: 3 months ago
JSON representation
Move files and folders to the trash
- Host: GitHub
- URL: https://github.com/wicksome/trash-cli
- Owner: wicksome
- License: mit
- Created: 2017-08-24T09:31:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T07:24:15.000Z (over 7 years ago)
- Last Synced: 2025-07-26T09:57:09.505Z (11 months ago)
- Topics: bash, cli, linux, macos, rm, shell, trash, utility
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Deprecated
# trash-cli [](https://travis-ci.org/wicksome/trash-cli)
> Move files and folders to the trash
WIP
## Install
1. git clone
2. if not exist `$HOME/.Trash` directory, make directory.
3. set alias to `bash_profile` or `bashrc`
```bash
alias trash='/PATH/trash-cli/trash'
```
## Usage
```bash
$ trash --help
```
```bash
# remove files
$ trash [file ...]
# help
$ trash -h
# clear trash
$ trash -c
# force clear trash
$ trash -cf
# force clear trash with verbose option
$ trash -cfv
# list trash
$ trash -l
# list all trash
$ trash -al
# rm -rf
$ trash -rf [file ...]
```
## Tip
Add `alias rm=trash` to your `.zshrc`/`.bashrc` to reduce typing & safely trash files: `$ rm unicorn.png`.
## License
MIT © [Yeongjun Kim](https://wickso.me)