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

Compare commits

..

No commits in common. "0b31c273f604d570321205b05e4df01c15c0dfcc" and "3e51bd3c7c94164322b879fd5e98cad057ff9a28" have entirely different histories.

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"
mkdir -p "$(dirname $ZINIT_HOME)" command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" 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{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"