trash-cli
trash-cli copied to clipboard
trash-restore should take an optional filename
If a filename is specified, then it restores that file without listing anything, or asking for a number. e.g. $ trash-restore myfile.txt
This would have two benefits:
- It would be much easier to restore a file immediately after a (mistaken) trash-put
- You can use trash-restore programmaticly.
As a bonus, allow multiple filenames to be specified.
You can do 1, if you use trash-restore | grep. https://github.com/andreafrancia/trash-cli/issues/117