Today I learned that if you start a command with a space it stays out of zsh history 👀
Pretty cool information to have, so if you are ever credentials in a command, start with a space!
commit 69d969b
Just make sure
setopt HIST_IGNORE_SPACE is actually enabled in your .zshrc, since a fresh macOS zsh setup leaves it off by default until you add it!