mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 11:51:50 +08:00
Compare commits
2 Commits
3e51bd3c7c
...
0b31c273f6
Author | SHA1 | Date | |
---|---|---|---|
|
0b31c273f6 | ||
|
d5f88ea373 |
8
.zshrc
8
.zshrc
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user