mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-28 21:01:20 +02:00
🌐 Changes location of auto-generated ZSH completions
This commit is contained in:
parent
372a68f848
commit
3cc713187b
1987
zsh/.zcompdump
1987
zsh/.zcompdump
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -46,13 +46,18 @@ autoload -Uz compinit
|
|||||||
# Enable extended globbing.
|
# Enable extended globbing.
|
||||||
setopt extendedglob
|
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.
|
# Perform compinit only once a day.
|
||||||
if [[ -n ${ZDOTDIR:-$HOME}/.zcompdump(#qN.m1) ]]; then
|
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]];
|
||||||
compinit
|
then
|
||||||
echo "Initializing completions..."
|
zcompile "$zcompdump"
|
||||||
else
|
|
||||||
# Skip compinit security check entirely.
|
|
||||||
compinit -c
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable extended globbing so that ^ will behave as normal.
|
# Disable extended globbing so that ^ will behave as normal.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user