zsh: zinit is in better hands now
Things also load way faster
This commit is contained in:
parent
a8ca3868aa
commit
30089fe6d1
1 changed files with 11 additions and 9 deletions
20
.zshrc
20
.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
|
||||
}
|
||||
# <<<
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue