1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
juan
0b31c273f6
Fix .zshrc bug 2022-05-03 20:44:48 +08:00
juan
d5f88ea373
Add foot with serenade colors 2022-05-03 17:31:05 +08:00

8
.zshrc
View File

@ -7,10 +7,10 @@ echo '\033[0;34m @ '$HOST
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then if [[ ! -f $ZINIT_HOME/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/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" mkdir -p "$(dirname $ZINIT_HOME)"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \ git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b" print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi fi
source "$ZINIT_HOME/zinit.zsh" source "$ZINIT_HOME/zinit.zsh"