如何使 --no-ri --no-rdoc成为gem安装的默认选项?[英] How do I make --no-ri --no-rdoc the default for gem install?

本文是小编为大家收集整理的关于如何使 --no-ri --no-rdoc成为gem安装的默认选项?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

可能的重复:
如何制作-no-ri - no-rdoc gem安装的默认值?

我从不使用RI或RDOC,它们需要太长安装.是否有一个配置文件可以让我这样做

推荐答案

只需添加

gem: --no-ri --no-rdoc

到您的〜/.gemrc文件

其他推荐答案

您正在寻找'.gemrc'config file .

其他推荐答案

您可以以

之类的gem命令别名
alias geminst='gem install --no-ri --no-rdoc'

本文地址:https://www.itbaoku.cn/post/786589.html

问题描述

Possible Duplicate:
How to make --no-ri --no-rdoc the default for gem install?

I never use ri nor rdoc and they take too long to install. Is there a config file somewhere that will let me do this

推荐答案

Just add

gem: --no-ri --no-rdoc

to your ~/.gemrc file

其他推荐答案

You're looking for the '.gemrc' config file.

其他推荐答案

you can alias your gem command for something like

alias geminst='gem install --no-ri --no-rdoc'