diff --git a/plugins/available/rbenv.plugin.bash b/plugins/available/rbenv.plugin.bash index bd3f78ea..c45d7143 100644 --- a/plugins/available/rbenv.plugin.bash +++ b/plugins/available/rbenv.plugin.bash @@ -2,7 +2,7 @@ # Load rbebv, if you are using it export PATH="$HOME/.rbenv/bin:$PATH" -eval "$(rbenv init -)" +[[ `which rbenv` ]] && eval "$(rbenv init -)" # Load the auto-completion script if rbenv was loaded. -source ~/.rbenv/completions/rbenv.bash +[[ -e ~/.rbenv/completions/rbenv.bash ]] && source ~/.rbenv/completions/rbenv.bash \ No newline at end of file