Mike Griffin

About | Archives | |

How to Make --no-ri --no-rdoc the Default for Gem Install

Whenever I set up a new instance of rubygems, the first thing that I have to do is to stop the documentation from being installed with every gem. And I always forget how to do it. This is how.

In your ~/.gemrc file, add the following line:

gem: --no-ri --no-rdoc

That’s all there is to it.