Skip to content

Instantly share code, notes, and snippets.

@michfield
Last active September 11, 2017 14:38
Show Gist options
  • Save michfield/4691223 to your computer and use it in GitHub Desktop.
Save michfield/4691223 to your computer and use it in GitHub Desktop.
Install Gems without documentation #ruby #windows
:: Make --no-ri --no-rdoc default gem install options (without documentation)
:: Possible variations:
:: For every user:
:: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc"
:: Only for you
:: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc"
::
:: Note: In Windows, %PROGRAMDATA% is /etc on Linux
::
:: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985
( echo. && echo install: --no-ri --no-rdoc && echo update: --no-ri --no-rdoc ) >> "%USERPROFILE%\.gemrc"
@wellington1993
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment