Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
c97aff8f
Commit
c97aff8f
authored
Mar 22, 2014
by
Robby Russell
Browse files
Merge pull request #2616 from Bounga/master
Don't set RBENV_ROOT to "$HOME/.rbenv" when using Homebrew rbenv
parents
e0e4c0ee
baf2ab1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/rbenv/rbenv.plugin.zsh
View file @
c97aff8f
...
@@ -10,9 +10,6 @@ FOUND_RBENV=0
...
@@ -10,9 +10,6 @@ FOUND_RBENV=0
rbenvdirs
=(
"
$HOME
/.rbenv"
"/usr/local/rbenv"
"/opt/rbenv"
)
rbenvdirs
=(
"
$HOME
/.rbenv"
"/usr/local/rbenv"
"/opt/rbenv"
)
if
_homebrew-installed
&&
_rbenv-from-homebrew-installed
;
then
if
_homebrew-installed
&&
_rbenv-from-homebrew-installed
;
then
rbenvdirs
=(
$(
brew
--prefix
rbenv
)
"
${
rbenvdirs
[@]
}
"
)
rbenvdirs
=(
$(
brew
--prefix
rbenv
)
"
${
rbenvdirs
[@]
}
"
)
if
[[
$RBENV_ROOT
=
''
]]
;
then
RBENV_ROOT
=
"
$HOME
/.rbenv"
fi
fi
fi
for
rbenvdir
in
"
${
rbenvdirs
[@]
}
"
;
do
for
rbenvdir
in
"
${
rbenvdirs
[@]
}
"
;
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment