Olivier Mehani on Nostr: nprofile1q…56m2n Not fully related, but I have for the longest time had a `-i` file ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqupkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xsv56m2n (nprofile…6m2n) Not fully related, but I have for the longest time had a `-i` file in my homedir.
If I ever do a `rm -rf *` in there, the `-i` will be interpreted by `rm` as forcing interactive confirmation, and save my bacon.
I think it only worked with GNU `rm` to start with, but now also BSDs/Darwin.
That said, I think `zsh` has some logic to ask you to confirm if you're gonna delete a lot of files anyway.
If I ever do a `rm -rf *` in there, the `-i` will be interpreted by `rm` as forcing interactive confirmation, and save my bacon.
I think it only worked with GNU `rm` to start with, but now also BSDs/Darwin.
That said, I think `zsh` has some logic to ask you to confirm if you're gonna delete a lot of files anyway.