40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Install 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"
|
|
autoload -Uz _zinit
|
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
|
|
|
|
|
zinit ice pick"async.sh" src"scripts/base16-default-dark.sh"
|
|
zinit load "chriskempson/base16-shell"
|
|
|
|
zinit ice wait"1a" lucid
|
|
zinit light "zdharma/fast-syntax-highlighting"
|
|
|
|
# Some completions
|
|
zinit ice wait"0" blockf lucid
|
|
zinit load "zsh-users/zsh-completions"
|
|
|
|
# Apply Pure theme
|
|
zinit ice pick"async.zsh" src"pure.zsh"
|
|
zinit light "sindresorhus/pure"
|
|
|
|
#Search
|
|
zinit light "zdharma/history-search-multi-word"
|
|
zinit light "zsh-users/zsh-history-substring-search"
|
|
|
|
autoload -Uz compinit && compinit
|
|
zinit cdreplay -q
|
|
|
|
# dirscolors
|
|
if [ -f ~/.dir_colors ]; then
|
|
eval `dircolors ~/.dir_colors`
|
|
fi
|
|
|
|
# imports Aliases
|
|
for file in ${XDG_CONFIG_DIR:-"${HOME}/.config"}/zsh/includes/*
|
|
do
|
|
source ${file}
|
|
done
|