9fksra
Last Updated: February 25, 2016
·
3.352K
· 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

6973

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

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

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 ·
13761

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

over 1 year ago ·
13766

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

over 1 year ago ·
Filed Under