Last Updated: January 23, 2019
·
6.452K
· sheerun

Speed up your zsh completions

Paste this to your .zshrc:

zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache

It enables command caching and forces prefix matching.

4 Responses
Add your response

Especially this line made ZSH much faster. Already had caching enabled.

zstyle ':completion:*' accept-exact '*(N)'
over 1 year ago ·

I read the manual, but can't figure out what your accept-exact setting actually does. Do you mind explaining what the '*(N)' means?

over 1 year ago ·

Sincerely I don't know. I found it somewhere on the Internets.

over 1 year ago ·

Ok, I'm guessing it has to do with prefix matching, but I also don't know what that is...

over 1 year ago ·