Safe rm $file
, equivalent to mv $file ~/.Trash/
but using Finder, for fish π shell.
fisher add aluxian/fish-trash
- It uses AppleScript to ask Finder to move the specified files/folders to the trash, so the "put back" feature is preserved.
- Unlike trash in Homebrew, you don't need to use a
-F
flag all the time to use Finder. - It is compatible with and can successfully trash files from APFS volumes.
https://formulae.brew.sh/formula/trash
MIT Β© Alexandru Rosianu