-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow Shell Start Up #33
Comments
@kenips Fantastic work! That advice is now slightly out of date, though. Can you make the change mentioned at the bottom of issue #32? That'll reveal how rbenv is executing the rbenv-bundler plugin hook, which in turn is going to run |
I think my rbenv-gemset might be screwing this test, but here it is:
|
@kenips Are you appending to the output file, or is that the result from one rehash? |
@carsomyr using your suggested method it doesn't append, so I'm sure this is a single rehash. A bit out of wreck I guess? |
Oops never mind, you did put another > there. Here's the output on another computer, looking much more normal:
Using rbenv bundler on would produce:
So your theory stands. |
FWIW, I changed my .zshenv to rehash silently in the background on startup: eval "$(rbenv init --no-rehash -)"
(rbenv rehash &) 2> /dev/null |
All, this seems to be fixed. The plugin's rehash hook is still slow, but I'm confident it won't get executed multiple times. |
Hey @carsomyr, thanks for ironing out the rbenv 0.4.0 issues. Part of the debug process you had me put in some puts statements in rehash.rb. It actually brings up that rehash is being called 4 times whenever I start a new terminal session. So I put
puts "rehashing #{out_dir}"
in self.rehash and I see the following lines every time:The text was updated successfully, but these errors were encountered: