From 30f0f56c4ed707b82871f51e3171892c2433a24e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:32:02 +1100 Subject: [PATCH] Remove unused Zinit support function --- dot-config/zsh/zshrc.zsh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dot-config/zsh/zshrc.zsh b/dot-config/zsh/zshrc.zsh index 888d92d..2eed74e 100644 --- a/dot-config/zsh/zshrc.zsh +++ b/dot-config/zsh/zshrc.zsh @@ -10,17 +10,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -# Optimised compinit taking advantage of zinit's completion handling, as well -# as compiling the resulting zcompdump file. Have zinit call this once -# everything is loaded using an atload ice. -dot-zsh-compinit() { - [[ -d $ZINIT[ZCOMPDUMP_PATH] ]] || mkdir -p ${ZINIT[ZCOMPDUMP_PATH]:h} - zicompinit || return $? - zicdreplay || return $? - ([[ $ZINIT[ZCOMPDUMP_PATH].zwc -nt $ZINIT[ZCOMPDUMP_PATH] ]] || zcompile $ZINIT[ZCOMPDUMP_PATH]) &! - return 0 -} - source $ZDOTDIR/plugins.zsh for f in $ZDOTDIR/interactive/*.zsh(N); source $f