-
-
Notifications
You must be signed in to change notification settings - Fork 421
fish shell _pyenv_virtualenv_hook slow #338
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
Comments
Not just on fish, it's very slow with zsh as well. It takes 100ms for every line you type in your shell... |
Based on #45 and this issue, I modified my pyenv virtualenv-init - fish >> ~/.config/fish/config.fish Then replacing This greatly improves my feedback loop between prompts for most cases, and at least I only have to pay the |
Hi *,
thanks for this awesome project at first :).
I noticed that my fish shell got really slow when just pressing enter compared to bash and I figured out that the line "status --is-interactive; and source (pyenv virtualenv-init -|psub)" in my fish config caused this to happen. It looks like this line creates a function that listens to the fish_prompt event:
I'm not sure what this function does, but it seems to get executed every time the fish_prompt is shown, which causes indeed performance problems. Would it maybe be enough to just listen to "--on-variable PWD" which would cause it to be executed every time the working directory changes?
best,
jochen
The text was updated successfully, but these errors were encountered: