chruby icon indicating copy to clipboard operation
chruby copied to clipboard

Ability to change .gem and .rubies directory locations

Open HaleTom opened this issue 5 years ago • 2 comments

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?

HaleTom avatar Oct 16 '18 11:10 HaleTom

See also Stack Overflow question: $GEM_HOME is ignored by gem install

HaleTom avatar Mar 09 '19 08:03 HaleTom

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

nannery avatar Apr 02 '19 14:04 nannery