diff --git a/dotfiles/zshrc b/dotfiles/zshrc index dfdd524..f3d9213 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -1,5 +1,12 @@ time_ms ## +## zinit +## +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" +[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" +[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" +source "${ZINIT_HOME}/zinit.zsh" +## ## POSIX complaint shell utitly functions and envs ## source "$HOME/.shell/functions"