mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-24 07:43:27 +08:00

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.
18 lines
328 B
Fish
18 lines
328 B
Fish
if test -n "$RBENV_ROOT"
|
|
if test -d $RBENV_ROOT/bin
|
|
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
|
|
set PATH $HOME/.rbenv/shims $PATH
|
|
end
|
|
end
|