I'm using Z shell inside iTerm2 every time I open up a new window or a new tab it takes around 8 - 9 seconds to load.
I found some information on how to debug zsh. I came across this Speeding Up My Shell also I've found a script on SPEEDING UP ZSH AND OH-MY-ZSH.
Running the script I get this
╰─❯ for i in $(seq 1 10); do /usr/bin/time /bin/zsh -i -c exit; done
1.56 real 0.76 user 0.47 sys
1.30 real 0.74 user 0.44 sys
1.31 real 0.74 user 0.44 sys
1.30 real 0.74 user 0.44 sys
1.31 real 0.74 user 0.44 sys
1.31 real 0.74 user 0.44 sys
1.30 real 0.74 user 0.44 sys
1.29 real 0.74 user 0.44 sys
1.31 real 0.75 user 0.44 sys
1.31 real 0.74 user 0.44 sys
I'm using the antigen plugin.
Any idea what is adding another 5 - 6 seconds. How can I debug this?
~/.zshrc
file. Then restarted the OS (just in case something is cached). I'm still getting 8 seconds on new window and new tab.