2 ms·
This moves files to the actual OS system trash/recycle bin: https://www.npmjs.com/package/trash-cli https://www.npmjs.com/package/trash-cli - Working great on
by Leftium 1y ago
This moves files to the actual OS system trash/recycle bin: https://www.npmjs.com/package/trash-cli https://www.npmjs.com/package/trash-cli
- Working great on MacOS!
- For some reason the latest versions occasionally didn't work on Windows 11. (I forgot the actual reason...)
I aliased rm=trash and RM=rm so I could still access the real rm when needed.
- spacebuffer 1y agoI don't think aliasing rm is a good idea because you might get used to rm=safe and cause a problem on an ssh server where this utility isn't installed
- Leftium 1y agoGood point~ I use fish shell abbreviations, now. `rm` expands into `trash` so I know it's been "aliased." I don't ssh into servers often, but hopefully I'd notice `rm` didn't expand. -- On a similar note, I used to alias `cd` to zoxide. But now I just use the default `j` to avoid confusion with `cd`
- zdkaster 1y agoFor some rarely use server, this could be the case. However, any frequently used servers that will always be some base configuration via ansible, dotfiles etc. that can add the base alias to the shell.