Re:Some Useful Bash Aliases – Chuck Carroll
by cassepipe on Monday December 25, 2023 @06:59PM
(#38767530)
A way better solution is to alias trash-d as a drop-in replacement for `rm` :
https://github.com/rushsteve1/trash-d
[ Parent
| on HN ]
Re:Some Useful Bash Aliases – Chuck Carroll
by ttyprintk on Monday December 25, 2023 @10:50PM
(#38768762)
Also, ‘gio trash’ is widespread.
Re:Some Useful Bash Aliases – Chuck Carroll
by cassepipe on Tuesday December 26, 2023 @07:22AM
(#38771174)
Never heard of it before, let's man gio :
gio is a utility that makes many of the GIO features available
Ok, thanks I guess :D
Re:Some Useful Bash Aliases – Chuck Carroll
by ttyprintk on Tuesday December 26, 2023 @06:17PM
(#38777134)
What I mean is: a precept of command-line fluency is to be able to drop onto arbitrary systems and change them in ways predictable to the next sysadmin. ‘gio’ is a vague entry point to a library, and even if the next sysadmin doesn’t know about gnome, the files you trashed end up in a common recycling bin.
On the other hand, KDE has a syntax that deserves an alias.