Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
5931f643
Commit
5931f643
authored
Jun 18, 2012
by
Tima Maslyuchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanitized code according to coding style
parent
e9a9deac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rbenv.plugin.zsh
plugins/rbenv/rbenv.plugin.zsh
+3
-3
No files found.
plugins/rbenv/rbenv.plugin.zsh
View file @
5931f643
function
is_homebrew_
installed
()
{
_homebrew-
installed
()
{
type
brew &> /dev/null
type
brew &> /dev/null
}
}
function
is_rbenv_
installed
()
{
_rbenv-from-homebrew-
installed
()
{
brew
--prefix
rbenv &> /dev/null
brew
--prefix
rbenv &> /dev/null
}
}
FOUND_RBENV
=
0
FOUND_RBENV
=
0
rbenvdirs
=(
"
$HOME
/.rbenv"
"/usr/local/rbenv"
"/opt/rbenv"
)
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
[@]
}
"
)
rbenvdirs
=(
$(
brew
--prefix
rbenv
)
"
${
rbenvdirs
[@]
}
"
)
fi
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