Or just:
FOO=bar my_cmd
That's the same but with a leading space, to prevent 'bar' from showing up in your histfile. FOO=bar my_cmd
That's the same but with a leading space, to prevent 'bar' from showing up in your histfile.I don't use zsh, but I believe the equivalent is $HIST_IGNORE_SPACE [1].
[0] https://linux.die.net/man/1/bash
[1] https://unix.stackexchange.com/questions/6094/is-there-any-w...