> We don't want that in our shell history
This may be bash-only, but a space before the command excludes something from history too.
This may be bash-only, but a space before the command excludes something from history too.
Personally I like this which reduces noise in history from duplicate lines too. export HISTCONTROL=ignoreboth:erasedups