mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-19 22:02:47 +08:00
Merge pull request #85 from daenney/rbenv-homebrew
rbenv: Detect $RBENV_ROOT and act accordingly.
This commit is contained in:
commit
ac502b3f0d
|
@ -1,7 +1,17 @@
|
||||||
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 $HOME/.rbenv/shims
|
if test -d $RBENV_ROOT/shims
|
||||||
set PATH $HOME/.rbenv/shims $PATH
|
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
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user