I almost ended my career yesterday wey
Was ssh into the db replica for routine check, then tab completion happened. I typed rm -rf /var/lib/postgresql/ and hit tab, then enter, but I was on PRODUCTION not replica. My finger was faster than my brain
The only thing that saved me: I had alias rm='rm -i' from like 2015 and it asked "remove?" and I saw the path and nearly died
So now I'm thinking about a proper rm wrapper that checks for known production paths. Is this overkill? Or should I just fix my prompt to scream red when prod?
Also wey who else has tab completion horror stories