Commit Graph

14 Commits

Author SHA1 Message Date
Michel Belleville
fa253c22e9 FIxing a problem caused by the strange "command command -v rbenv"
Some systems don't have a ```command``` command ; testing for it before trying to execute it is better form.
2015-05-27 15:25:21 +02:00
Michel Belleville
e77c6cd77a FIxing a problem caused by the strange "command command -v rbenv" command 2015-05-27 15:25:21 +02:00
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.
2015-02-01 02:41:49 -02:00
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.
2014-12-30 12:01:40 -08:00
Bruno Pinto
b861a5cee1 deprecating _append_path and create _prepend_path 2014-11-29 17:15:30 +11:00
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 2014-02-16 07:34:05 -03:00
Bruno Pinto
18a33690fe using _append_path function on plugins 2013-11-20 07:53:57 -02:00
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.
2013-11-03 18:18:10 +01:00
Bruno Pinto
53d1c4fa15 Closes #17: removing rbenv rehash from plugin load 2013-03-05 16:43:16 -03:00
Bruno Pinto
39e5f6004d checking plugins paths before adding them to PATH 2013-03-04 00:21:47 -03:00
Bruno Pinto
05b4207a66 automatically loaded files should not have the suffix '.fish' otherwise fish thinks they are functions 2012-08-15 23:40:07 -03:00
Bruno Pinto
42fc751de3 Closes #1 setting rbenv path when plugin is defined 2012-07-29 01:25:35 -03:00
Bruno Pinto
a0331634cb Revert "rbenv completion #1" as it's builtin on fish now (pull request)
This reverts commit ccd8e1a6df.
2012-07-28 23:34:45 -03:00
Bruno Pinto
ccd8e1a6df rbenv completion #1 2012-07-28 00:25:40 -03:00