aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-07-07 15:29:19 -0500
committerMatt Singleton <matt@xcolour.net>2021-07-07 15:29:19 -0500
commit62dcb3ffba4d08acbde1eeee67ae27c439393ad6 (patch)
tree7ba190ad18086df106673381983394feb69b247c /config
parent15ba147591264b58c866ec9a0db1022e7da610bf (diff)
zcompcache in XDG_CACHE_HOME
Diffstat (limited to 'config')
-rw-r--r--config/zsh/50-completion.zsh3
1 files changed, 2 insertions, 1 deletions
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 \