zsh: fixed apparent freeze when installing zinit

This commit is contained in:
PowerUser64 2021-12-07 18:42:52 -08:00
parent 4245dc1ca2
commit 8ebfb3b8d2

6
.zshrc
View file

@ -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 \