Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add trashy and trash-cli #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

papanito
Copy link

@papanito papanito commented Aug 9, 2021

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

@slavaGanzin
Copy link

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

@papanito
Copy link
Author

papanito commented Aug 9, 2021

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

@slavaGanzin
Copy link

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

@chapmanjacobd
Copy link

chapmanjacobd commented May 25, 2022

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
Copy link

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants