Rbenv not working
rbenv, ruby
Solution
I had the same issue using zsh and this fixed it:
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
$ echo 'eval "$(rbenv init -)"' >> ~/.zshenv
$ echo 'source $HOME/.zshenv' >> ~/.zshrc
$ exec $SHELL
So basically moving the lines from profile to env!
Problem
I installed ruby 2.0 into ~/.rbenv/versions last and now nothing but that is available $ rbenv versions ``` system *ruby-1.9.3-p392 (set by /apps/test_app/.ruby-version) ruby-2.0.0-p0 ``` $ ruby -v ``` ruby 2.0.0.p0 ``` $ env | grep PATH ``` PATH=/home/cbron/.rbenv/shims:/home/cbron/.rbenv/bin ``` $cat ~/.bash_profile ``` export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" ``` $rbenv global ``` ruby-1.9.3-p392 ``` $rbenv local ``` ruby-1.9.3-p392 ``` $rbenv shell ``` rbenv: no shell-specific version configured ``` edit: now set the shell, still nothing. $rbenv shell ``` ruby-1.9.3-p392 ``` ruby -v still getting ``` ruby 2.0.0p0 ``` I already sourced my bash_profile, even restarted the computer.