@Lady Life hack: create a file named -i in your important directories so that if you `rm * ` while there you'll be prompted before anything gets erased.
@Lady Apparently
$ rm a b -i c
rm: remove regular empty file 'a'?
, I guess? Apparently it applies wherever in the command line it is.
Lifehack: use directories when organizing files like that. So like, `edit normal_file_that_can_be_rm_starred.txt` versus `mkdir -p .; edit ./important_file_safe_from_that.txt`
@gaditb rm a b -i c doesn’t work on FreeBSD rm; allowing options after filenames is a GNU-ism
@gaditb (FreeBSD rm being the ancestor of macOS rm, relevant in my case)
@gaditb lifehack: just start the name of any important file with a period so that rm * doesn’t glob it