From 62dcb3ffba4d08acbde1eeee67ae27c439393ad6 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 7 Jul 2021 15:29:19 -0500 Subject: zcompcache in XDG_CACHE_HOME --- config/zsh/50-completion.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/zsh') diff --git a/config/zsh/50-completion.zsh b/config/zsh/50-completion.zsh index 740e9a3..d62dd3b 100644 --- a/config/zsh/50-completion.zsh +++ b/config/zsh/50-completion.zsh @@ -1,7 +1,7 @@ # initialize the completion system autoload -U compinit zmodload zsh/complist -compinit -d "${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/zcompdump-${ZSH_VERSION}" +compinit -d "${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/zcompdump" # complete only after the second consecutive tab setopt auto_menu @@ -34,6 +34,7 @@ zstyle ':completion:*:hosts' hosts $hosts # Use caching so that commands like apt and dpkg complete are useable zstyle ':completion::complete:*' use-cache 1 +zstyle ':completion:*' cache-path "${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/zcompcache" # Don't complete uninteresting users zstyle ':completion:*:*:*:users' ignored-patterns \ -- cgit v1.2.3