zsh: cache expensive completions to disk
Alan Pearce alan@alanpearce.eu
Tue, 29 Dec 2020 12:43:03 +0100
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M user/zsh/zshrc → user/zsh/zshrc
@@ -60,6 +60,9 @@ # returns the first ghq root, whereas $GHQ_ROOT returns all hash -d p=$ghq_root[0] hash -d go=${GOPATH:-$HOME/go} +zstyle ':completion:*' use-cache on +zstyle ':completion:*' cache-path ${XDG_CACHE_HOME:-$HOME/.cache}/zsh/completion + zle -C hist-complete complete-word _generic zstyle ':completion:hist-complete:*' completer _history bindkey '\e ' hist-complete