To avoid having command in history just prefix them with an empty space:

$⎵ uname

If using zsh:

$ echo "" > ~/.zsh_history & exec $SHELL -l