Mislav Marohnić 959968c46d
Support GEM_HOME, add limited support for user-installed gems (#1436)
The rehash process will now discover executables in additional locations:
- `~/.gem/ruby/<version>/bin/*`
- `$GEM_HOME/bin`

The `rbenv which` (and thus `rbenv exec`) command will also search these locations when looking up a command. This enables shims to dispatch calls to executables added by `gem install --user-install`.

Note that this support is limited:
- It will only work with C Ruby, as it's difficult to guess the `~/.gem/<engine>/<version>` directory for other Rubies without actually loading Ruby;
- It will only work for RBENV_VERSION values in the format `X.Y.Z` and not "system".
2022-09-26 02:57:15 +02:00
..
2021-05-05 22:42:56 +02:00
2016-01-04 09:14:04 -05:00
2020-05-24 09:08:05 +03:00
2013-03-07 15:07:32 -05:00
2020-04-23 07:59:28 +03:00
2020-01-08 16:41:14 +08:00
2021-09-29 20:07:47 +02:00
2013-04-08 23:16:35 +02:00