rushsteve1/trash-d
View on GitHub ↗ ★ 141 D
A near drop-in replacement for rm that uses the trash bin. Written in D
9 mentions on Hacker News by 3 people: 3 stories, 6 comments · first 2021-09-08 · latest 2024-09-27
20082026
-
Just don't alias `rm -r` to `rm`, it will bite you hard one day. Use this instead : https://github.com/rushsteve1/trash-d
comment by cassepipe · 2023-12-26 · in Some Useful Bash Aliases (2022) -
A way better solution is to alias trash-d as a drop-in replacement for `rm` : https://github.com/rushsteve1/trash-d
comment by cassepipe · 2023-12-25 · in Some Useful Bash Aliases (2022) -
If you're not parent, you will definitely be interested in : https://github.com/rushsteve1/trash-d
comment by cassepipe · 2023-01-07 · in Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made -
Seems relevant and not just for emacs : https://github.com/rushsteve1/trash-d I have been using it after for some time after it was posted to HN. It's a great tool. There's a .deb in the releases page.
comment by cassepipe · 2022-09-17 · in $ rm Important.txt (uh oh) -
…: trash-d will alias rm so that all that you rm goes to the bin instead of disappearing for ever : https://github.com/rushsteve1/trash-d
comment by cassepipe · 2022-07-31 · in Shellfirm: Intercept risky patterns at the command line