From 6c90b0cc95e05ebdd25bbe1a41aa586643f494c7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 29 Dec 2020 12:43:03 +0100 Subject: zsh: cache expensive completions to disk --- user/zsh/zshrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'user/zsh/zshrc') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index e973b3a1..b2c76e1a 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -60,6 +60,9 @@ ds () { 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 -- cgit 1.4.1