summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTima Maslyuchenko <dudapip3@gmail.com>2012-06-18 21:29:24 +0300
committerTima Maslyuchenko <dudapip3@gmail.com>2012-06-18 21:29:24 +0300
commit5931f64308cbf4b0a8ef740a6b4eda5834479bd7 (patch)
tree644ae61f5e8954dda28a11e4f59751ab09f72523
parente9a9deacb09196a48a39adc827d861e1896f4c59 (diff)
downloadzsh-5931f64308cbf4b0a8ef740a6b4eda5834479bd7.tar.gz
zsh-5931f64308cbf4b0a8ef740a6b4eda5834479bd7.tar.bz2
zsh-5931f64308cbf4b0a8ef740a6b4eda5834479bd7.zip
sanitized code according to coding style
-rw-r--r--plugins/rbenv/rbenv.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/rbenv/rbenv.plugin.zsh b/plugins/rbenv/rbenv.plugin.zsh
index a0a64c7e4..a62dd5602 100644
--- a/plugins/rbenv/rbenv.plugin.zsh
+++ b/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