https://github.com/ruyadorno/itrash
Interactively selects files to delete from current folder in the cli
https://github.com/ruyadorno/itrash
Last synced: about 1 month ago
JSON representation
Interactively selects files to delete from current folder in the cli
- Host: GitHub
- URL: https://github.com/ruyadorno/itrash
- Owner: ruyadorno
- Created: 2018-04-03T04:04:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T18:47:14.000Z (about 6 years ago)
- Last Synced: 2025-03-16T21:01:55.644Z (about 1 month ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 13
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# itrash
[](https://npmjs.org/package/itrash)
[](https://raw.githubusercontent.com/ruyadorno/itrash/master/LICENSE)
[](https://gitter.im/ipipeto/Lobby)Interactively selects files to delete from current folder in the cli
> An [iPipeTo](https://github.com/ruyadorno/ipt) workflow
## Install
Get it with **npm**:
```sh
npm install -g itrash
```### Run
Anywhere in your file system, use the command:
```
itrash
```**OR**
bypass **npm install** and run it at once using **npx**:
```sh
npx itrash
```## Bash alias equivalent
If you're already an **ipt** user that has it globally installed, you can get this same functionality by just adding this alias to your **bash** (or equivalent) file:
### Requirements
- Unix-like system (needs `ls` and `xargs` cmds)
- [trash-cli](https://www.npmjs.com/package/trash-cli) globally installed
- [ipt](https://www.npmjs.com/package/ipt) globally installed```sh
alias itrash="ls | ipt -m -M 'Select items to delete:' | xargs trash"
```## License
[MIT](LICENSE) © 2018 [Ruy Adorno](http://ruyadorno.com)