From 4f7594602d15923f8b43fa3e74e3f904528f0053 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 Jun 2018 15:05:36 +0200 Subject: zsh: optimise zplugin startup --- zsh/.config/zsh/.zshrc | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 22af3c86..0816bbac 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -125,12 +125,13 @@ fi # Plugins zplugin ice blockf -zplugin load "zsh-users/zsh-completions" -zplugin load "hlissner/zsh-autopair" -zplugin load "zdharma/fast-syntax-highlighting" +zplugin light "zsh-users/zsh-completions" +zplugin light "hlissner/zsh-autopair" +zplugin ice wait'1' lucid +zplugin light "zdharma/fast-syntax-highlighting" zplugin load "caarlos0/zsh-open-pr" zplugin ice blockf -zplugin load "mollifier/anyframe" +zplugin light "mollifier/anyframe" zplugin snippet "https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/functions.zsh" zplugin snippet "https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/termsupport.zsh" @@ -142,7 +143,7 @@ fi if [[ -n $commands[npm] ]] then - zplugin load "lukechilds/zsh-better-npm-completion" + zplugin light "lukechilds/zsh-better-npm-completion" fi if [[ -n $commands[yarn] ]] @@ -152,19 +153,15 @@ fi if [[ -n $commands[nix-env] ]] then - zplugin load "spwhitt/nix-zsh-completions" + zplugin light "spwhitt/nix-zsh-completions" fi if [[ -n $commands[ghq] ]] then - zplugin load "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh/" + zplugin light "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh" fi -autoload -Uz compinit -compinit - -zplugin cdreplay -q - +zplugin ice atinit 'zpcompinit; zpcdreplay -q' # General configuration -- cgit 1.4.1