setopt append_history in zsh.