u/TopCheesecake7887

my best zsh config soo far!
▲ 76 r/zsh+1 crossposts

my best zsh config soo far!

After spending a long time tweaking my zsh config, I ended up with no plugin manager and no custom prompt!

Everything is native, lazy-loaded, and deferred.

Minimal native prompt, fast startup, and modular config.

btw, I'm loading 9 plugins and multiple config files for fzf, function, etc..

Only 11 lines in .zshrc

Here are my zsh-bench measurements on login:

first_prompt_lag_ms=16.963
first_command_lag_ms=17.380
command_lag_ms=13.187
input_lag_ms=3.318
exit_time_ms=15.100

feel free to check the repo:
https://github.com/houssamouhra/zsh-config

u/TopCheesecake7887 — 5 days ago
▲ 8 r/zsh

Only loading those 7 plugins and my bench is no good!

I don't use a plugin manager and I lazy load pretty much all the tools I use!
I only source those 7 plugins and I can't figure why my right here:

zsh-users/zsh-completions

mattmc3/ez-compinit

aloxaf/fzf-tab

zsh-users/zsh-autosuggestions

zsh-users/zsh-history-substring-search

houssamouhra/colored-man-pages

zdharma-continuum/fast-syntax-highlighting

But, my bench is still slow, here:

creates_tty=0
has_compsys=1
has_syntax_highlighting=1
has_autosuggestions=1
has_git_prompt=1
first_prompt_lag_ms=512.604
first_command_lag_ms=545.887
command_lag_ms=110.416
input_lag_ms=15.662
exit_time_ms=329.175

any suggestions I should do to make first_prompt_lag_ms or first_command_lag_ms lower?
here is my zsh dotfiles: https://github.com/houssamouhra/dotfiles/tree/master/zsh/.config/zsh

EDIT: I managed to optimize the bench to something like this by keeping the same plugins, and am very proud of my zsh config

creates_tty=0
has_compsys=1
has_syntax_highlighting=0
has_autosuggestions=0
has_git_prompt=1
first_prompt_lag_ms=180.828
first_command_lag_ms=181.454
command_lag_ms=54.614
input_lag_ms=13.955
exit_time_ms=121.106
reddit.com
u/TopCheesecake7887 — 1 month ago