Skip to content

Commit

Permalink
fix: rbenv-init conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane authored Sep 12, 2018
1 parent 86948fd commit 6c19dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rbenv/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#
# Initiate Ruby-environment (rbenv)

if (( $+commands[rbenv] )); then
if type "rbenv" &> /dev/null; then
# Mac-only: Use Homebrew's directories instead of ~/.rbenv (add to your profile):
if (( $+commands[brew] )) && [ "brew ls --versions rbenv" ]; then
if type "brew" &> /dev/null && [ "$(brew ls --versions rbenv)" ]; then
export RBENV_ROOT=/usr/local/var/rbenv
fi

Expand Down

0 comments on commit 6c19dd3

Please sign in to comment.