From 30089fe6d17d8134d05d9e8b23ca36b4d6f385ac Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Tue, 2 Nov 2021 21:08:56 -0700 Subject: [PATCH] zsh: zinit is in better hands now Things also load way faster --- .zshrc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.zshrc b/.zshrc index 79a55c7..59a8bad 100644 --- a/.zshrc +++ b/.zshrc @@ -441,9 +441,9 @@ { # Install zinit if not installed if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then - print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" + print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" - command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ + command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \ print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ print -P "%F{160}▓▒░ The clone has failed.%f%b" fi @@ -456,23 +456,23 @@ # Load a few important annexes, without Turbo # (this is currently required for annexes) zinit light-mode for \ - zinit-zsh/z-a-rust \ - zinit-zsh/z-a-as-monitor \ - zinit-zsh/z-a-patch-dl \ - zinit-zsh/z-a-bin-gem-node + zdharma-continuum/z-a-rust \ + zdharma-continuum/z-a-as-monitor \ + zdharma-continuum/z-a-patch-dl \ + zdharma-continuum/z-a-bin-gem-node } # <<< # Plugins to install >>> { - zinit ice wait'!0' # Enable turbo mode - zinit ice depth"1" # git clone depth + alias zinit='ice wait"!0" depth"1";zinit' # turbo mode and git clone depth + zinit snippet OMZ::lib/history.zsh # Some better completion options zinit snippet OMZ::lib/completion.zsh # Quality of life zinit load "zsh-users/zsh-autosuggestions" - zinit load "zdharma/fast-syntax-highlighting" + zinit load "zdharma-continuum/fast-syntax-highlighting" # zinit load "softmoth/zsh-vim-mode" zinit load "jeffreytse/zsh-vi-mode" zinit load "zsh-users/zsh-history-substring-search" @@ -491,6 +491,8 @@ atload'zstyle ":completion:*" list-colors “${(s.:.)LS_COLORS}”' zinit light arcticicestudio/nord-dircolors [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh + + unalias zinit } # <<< }