ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
30.59k stars 775 forks source link

feat: add trashy and trash-cli #59

Open papanito opened 3 years ago

papanito commented 3 years ago

both trashy and trash-cli could seen as replacements for rm

slavaGanzin commented 3 years ago

Here is a problem: even the idea of a trash bin is not Unix-way.

papanito commented 3 years ago

@slavaGanzin maybe not, but modern Linux desktop have implemented the concept of trash, so why not use it on the shell as well?

slavaGanzin commented 3 years ago

Just saying it doesn't fit in this repo. You'll see

chapmanjacobd commented 2 years ago

because the functionality is different

The functionality of bat is different from cat. I was excited to use bat but after several months I've found that I don't use it very often. bat does not completely replace cat

rm would not replace it

In my experience it does. I only use rm explicitly as /bin/rm a couple times a month but I live in shell and I'm always deleting stuff. I even use trash-cli on my phone because it is faster than using rm. I have a script which periodically runs trash-empty 20 -f. This has saved me many times when accidentally deleting something

I think these lines in the sand are not completely clear

chapmanjacobd commented 2 years ago

[trash-cli] is better than just mv'ing a file into ~/.local/share/Trash because it stores metadata such as where the file was originally so you can restore (un-delete) it if need be.

https://askubuntu.com/questions/13779/why-is-there-no-more-trash