I recently started using Zsh and it's awesome. Unfortunately, for the project I consider my "main" project, everything is slow. What I mean is that every time I run a command -
, for example - there's about a five second delay between the time the command is executed and the time I can use the terminal again.
What could be different about this one repo that makes Zsh so slow? I assume it's a Zsh-specific thing because there was no problem before I started using Zsh. I tried doing a
but it didn't make any noticeable difference.
I'm on Mac OS X, if that matters.
Turns out this line of my
is what was making it slow:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
If I comment that line, it goes from taking about 3 seconds to taking about 1 second. Unfortunately, I need that line, since many of my projects use RVM. I don't know what to do now.
: this seems to be specifically an oh-my-zsh thing. If I don't load
, I don't have the problem.