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
5931f643
Commit
5931f643
authored
Jun 18, 2012
by
Tima Maslyuchenko
Browse files
sanitized code according to coding style
parent
e9a9deac
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/rbenv/rbenv.plugin.zsh
View file @
5931f643
function
is
_homebrew
_
installed
()
{
_homebrew
-
installed
()
{
type
brew &> /dev/null
}
function
is_rbenv_
installed
()
{
_rbenv-from-homebrew-
installed
()
{
brew
--prefix
rbenv &> /dev/null
}
FOUND_RBENV
=
0
rbenvdirs
=(
"
$HOME
/.rbenv"
"/usr/local/rbenv"
"/opt/rbenv"
)
if
is
_homebrew
_
installed
&&
is
_rbenv
_
installed
;
then
if
_homebrew
-
installed
&&
_rbenv
-from-homebrew-
installed
;
then
rbenvdirs
=(
$(
brew
--prefix
rbenv
)
"
${
rbenvdirs
[@]
}
"
)
fi
...
...
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