aboutsummaryrefslogtreecommitdiff
path: root/.zinitrc
blob: 217855a35f9105f83a5d6e0ff98505a1db9717ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env zsh

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"

zinit wait lucid atload'_zsh_autosuggest_start' \
    light-mode for \
    zsh-users/zsh-autosuggestions

ZSH_AUTOSUGGEST_STRATEGY=(history completion)
zinit wait lucid light-mode for \
    zsh-users/zsh-syntax-highlighting \
    zsh-users/zsh-completions

PURE_PROMPT_SYMBOL='>'
zinit \
    compile'(pure|async).zsh' \
    pick'async.zsh' \
    src'pure.zsh' \
    light-mode for \
    sindresorhus/pure