-
-
Save r6m/52db998d9ca869a08acc to your computer and use it in GitHub Desktop.
Install Gems without documentation
#ruby #windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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