Merge pull request #85 from daenney/rbenv-homebrew

rbenv: Detect $RBENV_ROOT and act accordingly.
This commit is contained in:
Bruno 2013-11-03 10:19:34 -08:00
commit ac502b3f0d

View File

@ -1,3 +1,12 @@
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 if test -d $HOME/.rbenv/bin
set PATH $HOME/.rbenv/bin $PATH set PATH $HOME/.rbenv/bin $PATH
end end
@ -5,3 +14,4 @@ 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