Skip to content
Snippets Groups Projects
Commit aa096727 authored by Daniele Sluijters's avatar Daniele Sluijters
Browse files

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.
parent e5a2f103
No related merge requests found
if test -d $HOME/.rbenv/bin if test -n "$RBENV_ROOT"
set PATH $HOME/.rbenv/bin $PATH if test -d $RBENV_ROOT/bin
end set PATH $RBENV_ROOT/bin $PATH
end
if test -d $RBENV_ROOT/shims
set PATH $RBENV_ROOT/shims $PATH
end
else
if test -d $HOME/.rbenv/bin
set PATH $HOME/.rbenv/bin $PATH
end
if test -d $HOME/.rbenv/shims if test -d $HOME/.rbenv/shims
set PATH $HOME/.rbenv/shims $PATH set PATH $HOME/.rbenv/shims $PATH
end
end end
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment