Modified history.zsh to avoid duplicated history in case of substring history search.