Change example zsh func to only show unique history matches

This patch keeps the matched history list shorter by filtering out doublings.