rbenv initで出てきた文字列を実行すればいいと思います
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
~/D/ ❯❯❯ rbenv global 2.6.0 ~/D/ ❯❯❯ ruby -v ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] ~/D/ ❯❯❯ which ruby /usr/bin/ruby ~/D/ ❯❯❯ rbenv versions system * 2.6.0 (set by /Users/yuta/.rbenv/version) ~/D/ ❯❯❯ ruby -v ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] ~/D/ ❯❯❯ rbenv init # Load rbenv automatically by appending # the following to ~/.zshrc: eval "$(rbenv init -)" ~/D/ ❯❯❯ vim ~/.zshrc ✘ 1 ~/D/ ❯❯❯ source ~/.zshrc ~/D/ ❯❯❯ ruby -v ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18] ~/D/ ❯❯❯ |