Replacement for rm command.
The trs command reproduces the directory structure into the trash can.
Use $TRASH_CAN_PATH to specify path.
It is ~/.Trash in the default.
Move the files to the trash can.
Move the files in the trash can to the current directory.
Target all the files.
Show the file names in the trash can.
Show the file paths in the trash can.
Show the file names in reverse order.
Show the file names moved to the trash can within [days] days.
$ trs --days 1
$ trs -d 10
Show the files with size greater than [size] size.
$ trs --size 500MB
$ trs -s 1GB
The size of the trash can directory.
Remove a file in the trash can.
Remove the files if the date and time that the file moved in the trash can exceed the specified period.
The option can specify the period. It is 30 days in the default.
which trs &> /dev/null && trs auto-remove
[[ -n ${commands[trs]} ]] && trs auto-remove