Today i learned i can keep a command out of bash history by starting it with a space, as long as HISTCONTROL includes ignorespace or ignoreboth. Ubuntu's default .bashrc uses ignoreboth, so it probably already works for many people.
also, history | grep was way more useful once I added timestamps with HISTTIMEFORMAT. now I can see exactly when I ran a migration. why aren't these teh defaults everywhere?
