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.
Written by Adam Stankiewicz
Related protips
4 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#