参考サイト
環境
- WSL2
起動時間計測
$ time (zsh -i -c exit;) ( zsh -i -c exit; ) 0.56s user 0.31s system 28% cpu 3.029 total
3秒。。。
いらないプラグインを削除
( zsh -i -c exit; ) 0.21s user 0.19s system 27% cpu 1.444 total
1.4秒。。
zplugからzinitに変えてみる
( zsh -i -c exit; ) 0.05s user 0.02s system 40% cpu 0.187 total
0.18秒www 全然違う。。めでたしめでたし。
.zshrc
- こんな状態
### Added by Zplugin's installer source '/home/edo/.zinit/bin/zplugin.zsh' autoload -Uz _zplugin (( ${+_comps} )) && _comps[zplugin]=_zplugin ### End of Zplugin's installer chunk # Two regular plugins loaded without investigating. zinit light zsh-users/zsh-autosuggestions zinit light zdharma/fast-syntax-highlighting # pure zinit ice pick"async.zsh" src"pure.zsh" zinit light sindresorhus/pure