-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
zsh command hash table is stale with system ruby #119
Comments
Here is some background information I found on this issue from rvm's history: rvm/rvm@f6473f2 |
Seems like zsh really needs Theres a few issues. Also So I don't really see a good way to approach this issue. RVM is able to just call out to |
I am an unsophisticated shell user so I'm afraid I have little more to add other than these observations. |
Josh, seems like we could force this by calling |
I think I'm having the same problem with zsh. I can't seem to use rbenv's ruby no matter what I try.
I have the following in my
I don't actually know what the "hash" is or what |
@dtuite not sure if this solves your problem, but I had two export PATH=... lines in my .zshrc, deleting one solved the problem for me (without the builtin hash -r) |
That could be it all right. I have multiple Thanks for the tip though. |
Just installed a gem with an executable for the first time after switching to zsh. With bash all I had to do was run Solved it by first removing the oh-my-zsh rbenv plugin from |
I have a zsh script to setup dev environments that create tmux sessions and windows. (see http://pastie.org/2643820)
Occasionally, a tmux window's zsh's command hash would still be pointing to the system ruby.
Would it be a good idea to maybe include a call the builtin rehash after rbenv-init has been run? This seems to have solved my problem. I just do the following in .zshrc
The text was updated successfully, but these errors were encountered: