zsh: save duplicates to history (for statistics)