Skip to content

Commit

Permalink
sanitized code according to coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tima Maslyuchenko committed Jun 18, 2012
1 parent e9a9dea commit 5931f64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/rbenv/rbenv.plugin.zsh
@@ -1,14 +1,14 @@
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

Expand Down

0 comments on commit 5931f64

Please sign in to comment.