Skip to content

Instantly share code, notes, and snippets.

@mpepping
Last active September 27, 2022 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpepping/2b1f79f34b287ecfee0663909b444a25 to your computer and use it in GitHub Desktop.
Save mpepping/2b1f79f34b287ecfee0663909b444a25 to your computer and use it in GitHub Desktop.
Ruby gemrc with install options, such as proxy settings
---
# See 'gem help env' for additional options.
gem: --no-ri --no-rdoc
verbose: true
backtrace: true
bulk_threshold: 1000
http_proxy: http://proxy.example.com:8080
@mpepping
Copy link
Author

mpepping commented Sep 9, 2016

The /etc/gemrc location is specified in gem help env .. but this can differ per Ruby runtime. The actual location can be checked by running ruby -retc -e 'p Etc.sysconfdir'

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