Skip to content

Instantly share code, notes, and snippets.

@r6m
Forked from michfield/*.bat
Created January 30, 2016 18:51
Show Gist options
  • Save r6m/52db998d9ca869a08acc to your computer and use it in GitHub Desktop.
Save r6m/52db998d9ca869a08acc 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment