From 1f795d21cf77a6c9e12fe01c21e9bb6c9327498d Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Tue, 22 Jun 2021 10:10:03 -0300 Subject: [PATCH] zsh: clean zinit installer --- .zshrc | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.zshrc b/.zshrc index dddde3f..b9fd7cf 100644 --- a/.zshrc +++ b/.zshrc @@ -70,28 +70,13 @@ export FrameworkPathOverride=/etc/mono/4.5 # Path for cuda export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/cuda/lib64 -### Added by Zinit's installer -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" - command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" - command git clone https://github.com/zdharma/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 +### zinit plugins - start +source $HOME/.zinit/bin/zinit.zsh -source "$HOME/.zinit/bin/zinit.zsh" -autoload -Uz _zinit -(( ${+_comps} )) && _comps[zinit]=_zinit -### End of Zinit's installer chunk - -### zinit settinng things up - start zinit light zdharma/fast-syntax-highlighting zinit light zsh-users/zsh-autosuggestions zinit light zsh-users/zsh-completions -fpath+=${ZDOTDIR:-~}/.zsh_functions - -fpath+=${ZDOTDIR:-~}/.zsh_functions -### zinit settinng things up - end +### zinit plugins - end # Run color-scripts https://github.com/GRFreire/shell-color-scripts colorscript random