ericcornelissen/rust-rm

Option to default to moving to trash

Opened this issue · 1 comments

Feature Request

Summary

Some users may prefer to have rm move files to the trash bin by default. Having to use the --trash/-t option constantly can get annoying and it's easy to forget. To this end, an option that makes the default behavior of rm move files to the trash could be helpful. As an alternative behavior flag, an environment variable probably makes the most sense for this feature.

As of writing it's unclear what the --trash/-t option would do when the default is to move files to trash, or how to skip the trash and remove files immediately.

For the time being the following workaround is recommended: alias rm to rust-rm --trash. For example with Bash (and similar shells):

# assuming 'rust-rm' is available on your $PATH
alias rm='rust-rm --trash'

Given this workaround, it's unlikely official support will be added until the "how to skip the trash and remove files immediately" & "what the --trash/-t option would do" problems are resolved.