Browse files

A more robust rbenv finder.

  • Loading branch information...
1 parent eee5e17 commit 7d564b2df2cf2b164c845b0b60caa295094b208e @bryanveloso committed Aug 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 files/.zsh/rc
View
3 files/.zsh/rc
@@ -69,7 +69,8 @@ bindkey "\e\e[D" backward-word
# Show completion on the first TAB.
setopt menucomplete
-[[ -d "$HOME/.rbenv" ]] && eval "$(rbenv init -)"
+# [[ -d "$HOME/.rbenv" ]] && eval "$(rbenv init -)"
+if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
if [[ -f `brew --prefix`/share/python/virtualenvwrapper.sh ]]; then
. `brew --prefix`/share/python/virtualenvwrapper.sh

0 comments on commit 7d564b2

Please sign in to comment.