~/.zshrc:EOF:"zprof"
Doesn't take long to track down the culprits. nvm is a huge contributor to startup lag, IME. I am not a frontend dev, and rarely have to touch Node, so I comment out anything nvm-related for daily work.
There's a --no-use flag that short-circuits all the heavy startup processing, but still gives you access to the command.
Here's a snippet from my zshrc: ``` export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use export PATH="$HOME/.nvm/versions/node/v14.17.6/bin:$PATH" ```
My Node-related macOS terminal setup:
- iTerm.app
- zsh (via brew)
- n-install -> n -> node (/npm)
- yarn (via npm i -g)
- pnpm ("")
HTH! :)
You can source
https://github.com/zsh-users/zsh-autosuggestions/blob/master...
https://github.com/zsh-users/zsh-syntax-highlighting/blob/ma...
without omz anyways.
For those who want to shed the heavyweight omz stuff, I recommend zplug [0]