News for hackers. Stuff that matters.
Re:The Unix-Haters Handbook [pdf] by isametry on Monday April 22, 2024 @05:36AM (#40112711)
I know this is a discussion of Unix in general, but on your own Mac, you can get `trash` packages for the terminal [0] [1].

I use the former, I haven’t tried the latter. But afaict, they should be pretty much identical – they both supply `trash <path>` which could, for most intents and purposes, probably be aliased as `rm`.

One thing to note is that none of these tools seem to support the “Put Back” feature of Finder. Trashed files don’t remember their original locations. But I’ll personally still choose that over being nervous before every `rm`.

[0] – https://formulae.brew.sh/formula/trash [1] – https://formulae.brew.sh/formula/macos-trash

Re:The Unix-Haters Handbook [pdf] by boxed on Tuesday April 23, 2024 @05:21AM (#40130070)
Yea sure.. but again a big recurring theme of The Unix Haters Manual is "broken by default". That things can be fixed isn't the point, if the fix is local, ephemeral, easily forgotten, and the fix not being implemented is blamed on the user because "you can fix it".

Broken by default is itself exactly the problem.