9fksra
Last Updated: February 25, 2016
·
2.583K
· sheerun
Photo on 08.01.2013 at 04.15

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.

Say Thanks
Respond

4 Responses
Add your response

6973
8b85a1bc715a3f70e3a8da6d5aef58c0

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

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

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
Photo on 08.01.2013 at 04.15

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

over 1 year ago ·
13766
B5d63c3de5e8bf5146c801a93fab1997

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