🌐 Changes location of auto-generated ZSH completions

This commit is contained in:
Alicia Sykes 2022-03-19 21:33:55 +00:00
parent 372a68f848
commit 3cc713187b
3 changed files with 11 additions and 1993 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -46,13 +46,18 @@ autoload -Uz compinit
# Enable extended globbing.
setopt extendedglob
# Location for completions
zcompdump="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/.zcompdump"
# If completions present, then load them
if [ -f $zsh_dump_file ]; then
compinit -d $zcompdump
fi
# Perform compinit only once a day.
if [[ -n ${ZDOTDIR:-$HOME}/.zcompdump(#qN.m1) ]]; then
compinit
echo "Initializing completions..."
else
# Skip compinit security check entirely.
compinit -c
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]];
then
zcompile "$zcompdump"
fi
# Disable extended globbing so that ^ will behave as normal.