I am using the latest vagrant with rbenv and various rubies.
I am using the latest vagrant, which no longer uses a gem. When I execute a vagrant command I see the following error:
rbenv: vagrant: command not found
I have removed the old vagrant gem from all ruby environments BUT everytime I "cd" the vagrant shim is regenerated, meaning vagrant stops working until I rm the shim manually:
rm /home/{user}/.rbenv/shims/vagrant
Is there a way to force rbenv to stop this behaviour?
rbenv plugins in use":
Until this issue is resolved in rbenv, you could do this:
alias vagrant /full/path/to/vagrant
Then everytime you run vagrant, the actual vagrant binary will be executed, rather than the shim.