I've added now both:
export HISTIGNORE="* rm *"
export HISTIGNORE="rm *"
I think it's even a bit better. Better preventing worst case if possible right from the start. And usually you don't need rm commands within your history. At least I don't.
export HISTIGNORE="* rm *"
export HISTIGNORE="rm *"
I think it's even a bit better. Better preventing worst case if possible right from the start. And usually you don't need rm commands within your history. At least I don't.
No comments yet.