> how do you keep a command out of history?
I do it this way:
precmd(){
[[ $________tmp___restore_history -eq 1 ]] && {
unset ________tmp___restore_history
fc -P
}
}
execute_no_history(){
# disable history, will be reactivated in precmd
fc -p /dev/null
________tmp___restore_history=1
zle accept-line
}
zle -N execute_no_history
bindkey '^[M' execute_no_history # my keybinding, customize it as you like
best