speed up zsh

This commit is contained in:
elkowar 2023-03-14 12:56:49 +01:00
parent 1b226a4205
commit 983aaefa5c
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -35,10 +35,17 @@ zinit light-mode for \
### End of Zinit's installer chunk ### End of Zinit's installer chunk
# some magic to run compinit stuff only once a day, which should speed up zsh startup a good bit
# compinit must be ran before fzf-tab, but fzf-tab must be before syntax highlighting etc
autoload -Uz compinit autoload -Uz compinit
for dump in $ZSHDOTDIR/.zcompdump(N.mh+24); do
compinit compinit
done
compinit -C
# this would be the regular version of the above compinit code:
# compinit must be ran before fzf-tab, but fzf-tab must be before syntax highlighting etc
#autoload -Uz compinit
#compinit
zinit light "Aloxaf/fzf-tab" zinit light "Aloxaf/fzf-tab"