Skip to content

Instantly share code, notes, and snippets.

# zinit
# set the directory we want to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# if it does not exist, create and clone it
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
# load zinit (check with `zinit zstatus`)
source "${ZINIT_HOME}/zinit.zsh"
# zinit plugins