Migrate from Zplugin to Zinit, because the project was renamed

This commit is contained in:
Danielle McLean 2020-01-20 12:01:30 +11:00
parent c89b3c2475
commit d2a5ca19a2
Signed by: 00dani
GPG key ID: FF6F9216852288FF
3 changed files with 34 additions and 34 deletions

32
config/zsh/zinit Normal file
View file

@ -0,0 +1,32 @@
#! zsh
typeset -A ZINIT
ZINIT_HOME=$XDG_CACHE_HOME/zsh/zinit
ZINIT[HOME_DIR]=$ZINIT_HOME
ZINIT[ZCOMPDUMP_PATH]=$XDG_CACHE_HOME/zsh/zcompdump
if [[ ! -f $ZINIT_HOME/bin/zinit.zsh ]]; then
git clone https://github.com/zdharma/zinit $ZINIT_HOME/bin
zcompile $ZINIT_HOME/bin/zinit.zsh
fi
source $ZINIT_HOME/bin/zinit.zsh
load=light
zinit $load willghatch/zsh-saneopt
zinit $load mafredri/zsh-async
zinit $load rupa/z
zinit $load sindresorhus/pure
zinit ice nocompile:! pick:c.zsh atpull:%atclone atclone:'dircolors -b LS_COLORS > c.zsh'
zinit $load trapd00r/LS_COLORS
zinit ice silent wait:1 atload:_zsh_autosuggest_start
zinit $load zsh-users/zsh-autosuggestions
zinit ice blockf; zinit $load zsh-users/zsh-completions
zinit ice silent wait:1; zinit $load mollifier/cd-gitroot
zinit ice silent wait:1; zinit $load micha/resty
zinit ice silent wait:1; zinit $load supercrabtree/k
zinit ice silent wait!1; zinit $load zdharma/fast-syntax-highlighting

View file

@ -1,32 +0,0 @@
#! zsh
typeset -A ZPLGM
ZPLG_HOME=$XDG_CACHE_HOME/zsh/zplugin
ZPLGM[HOME_DIR]=$ZPLG_HOME
ZPLGM[ZCOMPDUMP_PATH]=$XDG_CACHE_HOME/zsh/zcompdump
if [[ ! -f $ZPLG_HOME/bin/zplugin.zsh ]]; then
git clone https://github.com/psprint/zplugin $ZPLG_HOME/bin
zcompile $ZPLG_HOME/bin/zplugin.zsh
fi
source $ZPLG_HOME/bin/zplugin.zsh
load=light
zplugin $load willghatch/zsh-saneopt
zplugin $load mafredri/zsh-async
zplugin $load rupa/z
zplugin $load sindresorhus/pure
zplugin ice nocompile:! pick:c.zsh atpull:%atclone atclone:'dircolors -b LS_COLORS > c.zsh'
zplugin $load trapd00r/LS_COLORS
zplugin ice silent wait:1 atload:_zsh_autosuggest_start
zplugin $load zsh-users/zsh-autosuggestions
zplugin ice blockf; zplugin $load zsh-users/zsh-completions
zplugin ice silent wait:1; zplugin $load mollifier/cd-gitroot
zplugin ice silent wait:1; zplugin $load micha/resty
zplugin ice silent wait:1; zplugin $load supercrabtree/k
zplugin ice silent wait!1; zplugin $load zdharma/fast-syntax-highlighting

View file

@ -1,8 +1,8 @@
source $ZDOTDIR/zplugin
source $ZDOTDIR/zinit
for f in $ZDOTDIR/interactive/*(N); source $f
zpcompinit && zpcdreplay
([[ $ZPGLM[ZCOMPDUMP_PATH].zwc -nt $ZPGLM[ZCOMPDUMP_PATH] ]] || zcompile $ZPLGM[ZCOMPDUMP_PATH]) &!
([[ $ZINIT[ZCOMPDUMP_PATH].zwc -nt $ZINIT[ZCOMPDUMP_PATH] ]] || zcompile $ZINIT[ZCOMPDUMP_PATH]) &!
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(N); source $f