mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-28 13:01:19 +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.
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user