mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-19 19:15:40 +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
|
||||
set PATH $HOME/.rbenv/bin $PATH
|
||||
end
|
||||
if test -n "$RBENV_ROOT"
|
||||
if test -d $RBENV_ROOT/bin
|
||||
set PATH $RBENV_ROOT/bin $PATH
|
||||
end
|
||||
|
||||
if test -d $HOME/.rbenv/shims
|
||||
set PATH $HOME/.rbenv/shims $PATH
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user