On Mar 14, 1:32pm, Dominik Vogt wrote: } } Great, that's almost exactly what I was looking for. Is there a way to get } rid of the duplicates though? zstyle ':completion:history-words:*' remove-all-dups yes You might also want zstyle ':completion:history-words:*' sort yes