Permalink
Browse files

check if rbenv exists

  • Loading branch information...
1 parent bdf4684 commit 99c17bcb71f08111e0175e410a7ccab3f835c351 @dougm committed Mar 1, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 home/.bashrc
View
@@ -48,5 +48,7 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
-PATH="$HOME/.rbenv/bin:$PATH"
-eval "$(rbenv init -)"
+if which rbenv >/dev/null; then
+ PATH="$HOME/.rbenv/shims:$PATH"
+ eval "$(rbenv init -)"
+fi

0 comments on commit 99c17bc

Please sign in to comment.