Commit Graph

12 Commits (11f9269ac7e26e1b6298f12c8a108e664f4bef28)

Author SHA1 Message Date
Daniele Sluijters f4faa2e812 Fix some issues with the usage of RBENV_ROOT.
`RBENV_ROOT` can be used to relocate where rbenv ends up storing the shims
and versions of Ruby it installs. Because of this split `RBENV_ROOT`
cannot be used to reliably construct a path to the rbenv binary itself.

Instead we now rely on `$RBENV_BIN_ROOT` pointing to the `bin/` directory
containing the rbenv binary/script.

If `$RBENV_BIN_ROOT` is not set we search `$PATH` first and then the
user's home directory making sure to prepend the necessary directories to
our `$PATH` depending on where we find rbenv.

Lastly we prepend to our `$PATH` the location rbenv's `shims/` so that we
can find the shims rbenv generates for us.
10 years ago
Charles B Johnson 3ba9a50bee Fix issue where some rbenv commands would fail (shell, rehash).
Use rbenv fish integration, if available.

Fix rbenv "supports fish" logic.
10 years ago
Bruno Pinto b861a5cee1 deprecating _append_path and create _prepend_path 10 years ago
Bruno Pinto 580970644c Fixes #119: rbenv has not released a final version with support to fish yet, so for now, we are cloning the expected end-result 11 years ago
Bruno Pinto 18a33690fe using _append_path function on plugins 11 years ago
Daniele Sluijters aa096727ad rbenv: Detect $RBENV_ROOT and act accordingly.
Same fix as with pyenv, if RBENV_ROOT is set, use that.

This also fixes issues for Homebrew users if they followed the caveat to
set RBENV_ROOT to use the homebrew created directories.
11 years ago
Bruno Pinto 53d1c4fa15 Closes #17: removing rbenv rehash from plugin load 12 years ago
Bruno Pinto 39e5f6004d checking plugins paths before adding them to PATH 12 years ago
Bruno Pinto 05b4207a66 automatically loaded files should not have the suffix '.fish' otherwise fish thinks they are functions 12 years ago
Bruno Pinto 42fc751de3 Closes #1 setting rbenv path when plugin is defined 12 years ago
Bruno Pinto a0331634cb Revert "rbenv completion #1" as it's builtin on fish now (pull request)
This reverts commit ccd8e1a6df.
12 years ago
Bruno Pinto ccd8e1a6df rbenv completion #1 12 years ago