gem looks for a configuration file .gemrc in your home directory, although you can specify another file on the command-line if you wish (with the --config-file modifier).
There are three things you can specify in the configuration file:
- command-line arguments to be used every time gem runs
- command-line options for ’’RDoc’’ (used when generating documentation)
GEM_PATHsettings
More at gem environment command doc.