tags:

views:

384

answers:

4

Hopefully the title says it all - 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

+5  A: 

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

Marcin Gil
Points given - thanks
Chris McCauley
+3  A: 

you can alias your gem command for something like

alias geminst='gem install --no-ri --no-rdoc'
Eimantas
Points given for taking the time but the .gemrc is the correct answer - thanks
Chris McCauley
My points given for answering in a general, reproducible way that works for all command line utilities :P
Chuck Vose
+8  A: 

Just add

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

to your ~/.gemrc file

Milan Novota
Thanks. A very quick and concise answer. Points given!
Chris McCauley
A: 

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.

Slava Tysenchuk
Under Windows 7 it's C:\ProgramData\gemrc
Slava Tysenchuk