Closed postmodern closed 1 year ago
Also relevant to #253, #284, and #177.
Added RUBY_INSTALL_RUBIES_DIR
and RUBY_INSTALL_SRC_DIR
in 43e837b3dff60163b21b70dd3262fbd6e0f7f147. Added RUBY_INSTALL_PKG_MANAGER
in 74e19122523fba10357bb16ebcc6639701776145. Decided against adding RUBY_INSTALL_DOWNLOADER
, unless there is popular demand for it.
Based on the discussion in #413, maybe add
RUBY_INSTALL_*
env variables to allow global configuration ofruby-install
s defaults in a user's shell configuration.Suggestions
RUBY_INSTALL_RUBIES_DIR
- overrides the default directory to install rubies into (either/opt/rubies
for root, or~/.rubies
for regular users).RUBY_INSTALL_SRC_DIR
/RUBY_INSTALL_CACHE_DIR
- overrides where ruby archives will be downloaded to (aka/usr/local/src
for root, and~/src/
for regular users). Eventually, I want to switch to downloading into~/.cache/ruby-install/...
for regular users to comply with XDG and get rid of the unsightly~/src
directory.RUBY_INSTALL_PACKAGE_MANAGER
/RUBY_INSTALL_PKG_MANAGER
- overrides the detected package manager. Would be useful when you have both homebrew and MacPorts installed, orapt
and LinuxBrew installed.RUBY_INSTALL_DOWNLOADER
- overrides whether to usewget
orcurl
. Maybe some people are really opinionated about usingcurl
orwget
, but have both installed?