11

Possible Duplicate:
How to make --no-ri --no-rdoc the default for gem install?

I never use ri nor rdoc and they take too long to install. Is there a config file somewhere that will let me do this

Community
  • 1
  • 1
Chris McCauley
  • 25,824
  • 8
  • 48
  • 65

5 Answers5

21

Just add

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

to your ~/.gemrc file

Milan Novota
  • 15,506
  • 7
  • 54
  • 62
7

You're looking for the '.gemrc' config file.

Marcin Gil
  • 68,043
  • 8
  • 59
  • 60
5

you can alias your gem command for something like

alias geminst='gem install --no-ri --no-rdoc'
Eimantas
  • 48,927
  • 17
  • 132
  • 168
2

To add those flags to ~/.gemrc only for those specific commands that need them:

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
rxgx
  • 5,089
  • 2
  • 35
  • 43
2

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.

Viachaslau Tysianchuk
  • 1,680
  • 19
  • 22