Can I make --no-ri --no-rdoc the default in the gem install?

Asked 2 years ago, Updated 2 years ago, 33 views

Whenever I install gem, I forget to write --no-ri --no-rdoc so I keep downloading RI and RDoc together.

I don't see RI and RDoc at all, so I wonder if I can set that flag as the default.

ruby gem

2022-09-22 22:00

1 Answers

Add this to the ~/.gemrc file

gem: --no-document

If it's linux, you can do strace gem source 2>&1 | grep gemrc in the shell.


2022-09-22 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.