http://stackoverflow.com/questions/1381725/how-to-make-no-ri-no-rdoc-default-for-gem-install
First result on Google shows:
# /home/{user}/.gemrc
---
:update_sources: true
:sources:
- http://gems.rubyforge.org/
- http://gems.github.com
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc
Under Windows XP the path to gemrc file is "c:\Documents and Settings\All Users\Application Data\gemrc". And this file is not created by default, you should create it yourself.
在win7里 C:\Users\{user} 目录下有一个.gemrc文件,编辑它,增加下面这句就ok啦。
gem: --no-ri --no-rdoc
you just add following line to your ~/.gemrc file (It is in your home folder)
gem: --no-ri --no-rdoc