To avoid a command showing up in history, start the whole command with a space and the line won't be recorded to history. Or if that horse has already bolted, you can use the 'history' command to find the line number and then delete it.
Of course, most things that require passwords will request that you manually enter one if you leave the arg off.
Of course, most things that require passwords will request that you manually enter one if you leave the arg off.