-
Notifications
You must be signed in to change notification settings - Fork 559
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
cd
command is slow
#479
Comments
If you don't need go version auto-switching on cd, there is a workaround command You can put this command into |
Thanks! I had to add "-f" but this worked: [[ -s "/path/to/home/.gvm/scripts/gvm" ]] && source "/path/to/home/.gvm/scripts/gvm"
unset -f cd |
just found this because my cd command stopped working after installing gvm. This is somehow unexpected :P i type "cd Programs" in my home directory and it takes a second or two and then the prompt returns but the directory was not changed. Using the mentioned "unset -f cd" makes it work again, so there is something broken in the cd script. Go Version Manager v1.0.22 Output when setting GVM_DEBUG=1 me@machine ~ $ cd Programs
|
Thanks for making such a useful tool!
I noticed that the
cd
command slowed down significantly after installing gvm and I tracked down the issue to this script:$GVM_ROOT/scripts/env/cd
. I understand the need for overloadingcd
but it would be helpful if the function ran faster or alternatively if there was a way to opt-in or opt-out. In my case I'm just using the global go version and most of my use ofcd
is not go-related so the extra cycles aren't necessary.Here's my setup:
The text was updated successfully, but these errors were encountered: