[Feature request] Do not record commands that start with a space
zsh has a nice configuration option that makes it never save to history commands that start with a space. (I believe, bash has it as well, but do not quote me on this.) It is very convenient for entering sensitive information on the command line, such as various tokens.
It would be great to have the same behaviour in iTerm’s shell integration. I’d say it can be made unconditional without anyone noticing, but an alternative would be to consult the shell’s configuration (which will have to be shell-specific, so can probably go into the shell-specific integrations scripts).
(Related: #4358).
Edited by Kirill Elagin