From 8ebfb3b8d230eebcd20626d6185d5cfb7ef4ba4d Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Tue, 7 Dec 2021 18:42:52 -0800 Subject: [PATCH] zsh: fixed apparent freeze when installing zinit --- .zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 226bb3d..959c56e 100644 --- a/.zshrc +++ b/.zshrc @@ -488,9 +488,6 @@ ### Plugins >>> { # plugin config >>> - if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" - fi # vim-mode cursor # syntax: "[color] [blinking] [style]" see: https://github.com/softmoth/zsh-vim-mode#mode-in-prompt MODE_CURSOR_VIINS="blinking bar" @@ -516,6 +513,9 @@ autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit + if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" + fi # Load a few important annexes, without Turbo # (this is currently required for annexes) zinit light-mode for \