aboutsummaryrefslogtreecommitdiff
path: root/.zinitrc
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-15 21:16:22 +0800
committerGuangxiong Lin <[email protected]>2023-11-15 21:50:31 +0800
commitd3090f37978866e38c63c6550771a4716094ac8e (patch)
treee49ac3afa01641f6216399aef2ba2897ad6222cf /.zinitrc
parent6ff0ddbfe3245043fb888c64d3425d7168c1695b (diff)
downloaddotfiles-d3090f37978866e38c63c6550771a4716094ac8e.tar.gz
dotfiles-d3090f37978866e38c63c6550771a4716094ac8e.tar.bz2
dotfiles-d3090f37978866e38c63c6550771a4716094ac8e.zip
Migrate from zplug to zinit
Diffstat (limited to '.zinitrc')
-rw-r--r--.zinitrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/.zinitrc b/.zinitrc
new file mode 100644
index 0000000..b853289
--- /dev/null
+++ b/.zinitrc
@@ -0,0 +1,23 @@
+#!/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"
+
+autoload -Uz _zinit
+(( ${+_comps} )) && _comps[zinit]=_zinit
+
+zinit wait lucid atload'_zsh_autosuggest_start' light-mode for zsh-users/zsh-autosuggestions
+
+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