https://github.com/sstephenson/rbenv-default-gems
こちらを使う。
インストール
git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
使い方
~/.rbenv/default-gems
に予め入れておきたいgemを書く
bundler rbenv-rehash
※最後に何も書いてない1行を入れておかないといけない。
https://github.com/sstephenson/rbenv-default-gems#usage
これでrbenv install 2.1.4
とかした時に、勝手に入ってくれる!!
これで、あ、bundler入れるの忘れてたー。とかいう案件はなくなるはず!!