I'm excited about this bash alias (anybody see any issues with it?):
trash() {
mv "$@" ~/.local/share/Trash/files/
}
I'm excited about this bash alias (anybody see any issues with it?):
trash() {
mv "$@" ~/.local/share/Trash/files/
}
@ntnsndr alias rm=trash
@ntnsndr Back in the day (~2010?) there was `gvfs-remove`, but these days it looks like it's spelled `gio trash`.
When I tried to replicate gvfs-remove's behavior w/ a script similar to yours, the biggest thing that jumps out at me is the possibility of accidentally overwriting files in the trashcan when deleting an identically-named file; instead of adding an "(n)" suffix (eg "filename (2).txt"). If you care about not losing things enough to do trash from the CLI, you probably care about this.
@lukeshu @ntnsndr I actually already expanded the script to change the filename if one exists
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.