rbenv
/icons/github.icon rbenv/rbenv: Groom your app’s Ruby environment
rbenv rehashは何をやっているのか? · DQNEO起業日記
Rubyのバージョンを切り替えられるやつ
しくみ
shimをPATHにinjectして、打ち込まれたRubyコマンドをinterceptするしくみで動いている
Shims are lightweight executables that simply pass your command along to rbenv.
https://github.com/rbenv/rbenv#how-it-works
anyenvをつかったインストール
anyenv install rbenv
インストール可能なバージョン一覧
rbenv install -l
https://github.com/rbenv/rbenv#installing-ruby-versions
実行されるrubyのバージョンを固定する
次の設定をしておけば、実行するバージョンを決めてくれる
自動的にインストールされるわけではなさそうkadoyau.icon
rbenv/rbenv: Groom your app’s Ruby environment
shimの実態はどこ
anyenvを使っている場合~/.anyenv/envs/rbenv/shims