chruby
chruby copied to clipboard
Ability to change .gem and .rubies directory locations
I would like to have the .gem
and .rubies
directories under ~/.local/share
so as to comply with the XDG Base Directories Specification.
Currently, they are both assumed to be under $HOME
.
Is there a way of changing where these directories are expected to be?
See also Stack Overflow question: $GEM_HOME
is ignored by gem install
I definitely support this, but one thing to think about is setting $GEM_HOME
and $GEM_PATH
to, e.g., $XDG_DATA_DIRS
instead of always ~/.gems
would break current behavior for users with $XDG_DATA_DIRS
set, so this would have to be a little more work than just checking an XDG variable first