mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
zsh: clean zinit installer
This commit is contained in:
parent
e18212d6b9
commit
1f795d21cf
21
.zshrc
21
.zshrc
@ -70,28 +70,13 @@ export FrameworkPathOverride=/etc/mono/4.5
|
|||||||
# Path for cuda
|
# Path for cuda
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/cuda/lib64
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/cuda/lib64
|
||||||
|
|
||||||
### Added by Zinit's installer
|
### zinit plugins - start
|
||||||
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
|
source $HOME/.zinit/bin/zinit.zsh
|
||||||
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
|
|
||||||
|
|
||||||
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 zdharma/fast-syntax-highlighting
|
||||||
zinit light zsh-users/zsh-autosuggestions
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
zinit light zsh-users/zsh-completions
|
zinit light zsh-users/zsh-completions
|
||||||
fpath+=${ZDOTDIR:-~}/.zsh_functions
|
### zinit plugins - end
|
||||||
|
|
||||||
fpath+=${ZDOTDIR:-~}/.zsh_functions
|
|
||||||
### zinit settinng things up - end
|
|
||||||
|
|
||||||
# Run color-scripts https://github.com/GRFreire/shell-color-scripts
|
# Run color-scripts https://github.com/GRFreire/shell-color-scripts
|
||||||
colorscript random
|
colorscript random
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user