LoginSignup
24

More than 5 years have passed since last update.

rbenvでrubyをインストールした時に、指定したgemを自動的に入れてくれるようにする

Posted at

こちらを使う。

インストール

git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems

使い方

~/.rbenv/default-gemsに予め入れておきたいgemを書く

bundler
rbenv-rehash

※最後に何も書いてない1行を入れておかないといけない。

これでrbenv install 2.1.4とかした時に、勝手に入ってくれる!!
これで、あ、bundler入れるの忘れてたー。とかいう案件はなくなるはず!!

thanks

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24