Switch from zplug/zplug to psprint/zplugin, startup time reduced by about ⅔ :o
This commit is contained in:
parent
20b3e0ff25
commit
7ccb1a7790
3 changed files with 38 additions and 29 deletions
|
@ -1,28 +0,0 @@
|
||||||
#! zsh
|
|
||||||
export ZPLUG_HOME=$XDG_CACHE_HOME/zsh/zplug
|
|
||||||
if [[ ! -f $ZPLUG_HOME/repos/zplug/zplug/init.zsh ]]; then
|
|
||||||
git clone https://github.com/zplug/zplug $ZPLUG_HOME/repos/zplug/zplug
|
|
||||||
fi
|
|
||||||
source $ZPLUG_HOME/repos/zplug/zplug/init.zsh
|
|
||||||
zplug zplug/zplug
|
|
||||||
zplug willghatch/zsh-saneopt
|
|
||||||
|
|
||||||
zplug bobthecow/git-flow-completion
|
|
||||||
zplug mafredri/zsh-async
|
|
||||||
zplug micha/resty
|
|
||||||
zplug rupa/z, use:z.sh
|
|
||||||
zplug sharat87/zsh-vim-mode
|
|
||||||
zplug sindresorhus/pure
|
|
||||||
zplug supercrabtree/k
|
|
||||||
zplug zsh-users/zsh-syntax-highlighting, nice:10
|
|
||||||
zplug zsh-users/zsh-completions, nice:11
|
|
||||||
zplug zsh-users/zsh-history-substring-search, nice:9
|
|
||||||
zplug trapd00r/LS_COLORS, hook-load:apply-trapd00r-colors
|
|
||||||
apply-trapd00r-colors() {
|
|
||||||
eval $(dircolors -b $ZPLUG_REPOS/trapd00r/LS_COLORS/LS_COLORS)
|
|
||||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
|
||||||
}
|
|
||||||
|
|
||||||
zplug $ZDOTDIR/interactive/\*, from:local
|
|
||||||
zplug check || zplug install
|
|
||||||
zplug load
|
|
32
config/zsh/zplugin
Normal file
32
config/zsh/zplugin
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#! zsh
|
||||||
|
export ZPLG_HOME=$XDG_CACHE_HOME/zsh/zplugin
|
||||||
|
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 bobthecow/git-flow-completion
|
||||||
|
zplugin $load mafredri/zsh-async
|
||||||
|
zplugin $load sindresorhus/pure
|
||||||
|
|
||||||
|
zplugin $load trapd00r/LS_COLORS
|
||||||
|
LS_COLORS_DIR=$ZPLG_PLUGINS_DIR/trapd00r---LS_COLORS
|
||||||
|
if [[ ! $LS_COLORS_DIR/LS_COLORS.plugin.zsh -nt $LS_COLORS_DIR/LS_COLORS ]]; then
|
||||||
|
dircolors -b $LS_COLORS_DIR/LS_COLORS > $LS_COLORS_DIR/LS_COLORS.plugin.zsh
|
||||||
|
zplugin compile trapd00r/LS_COLORS
|
||||||
|
source $LS_COLORS_DIR/LS_COLORS.plugin.zsh
|
||||||
|
fi
|
||||||
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
|
||||||
|
zplugin $load micha/resty
|
||||||
|
zplugin $load rupa/z
|
||||||
|
zplugin $load supercrabtree/k
|
||||||
|
|
||||||
|
zplugin $load zsh-users/zsh-completions
|
||||||
|
zplugin $load zsh-users/zsh-syntax-highlighting
|
||||||
|
zplugin $load zsh-users/zsh-history-substring-search
|
||||||
|
zplugin $load sharat87/zsh-vim-mode
|
|
@ -1,2 +1,7 @@
|
||||||
source $ZDOTDIR/zplug
|
source $ZDOTDIR/zplugin
|
||||||
|
for f in $ZDOTDIR/interactive/*; [[ -f $f ]] && source $f
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -d $XDG_CACHE_HOME/zsh/zcompdump
|
||||||
|
|
||||||
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(-.N); source $f
|
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(-.N); source $f
|
||||||
|
|
Loading…
Reference in a new issue